summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-29 19:04:27 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-29 19:04:27 (EDT)
commit83e59a7394c6d19dda20f9d31d4e08ddadca11dc (patch)
treec98462c95ad4a473eb6e889b91c8f7e4e91b6e4c
parent7cfd69af0a36848385a5f015b583fe644312dcfa (diff)
downloadmarquee-83e59a7394c6d19dda20f9d31d4e08ddadca11dc.zip
marquee-83e59a7394c6d19dda20f9d31d4e08ddadca11dc.tar.gz
marquee-83e59a7394c6d19dda20f9d31d4e08ddadca11dc.tar.bz2
MqTabBody: Let WebKit handle middle clicks on editable elems
-rw-r--r--src/tab-body.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tab-body.c b/src/tab-body.c
index f0c0b37..91fb490 100644
--- a/src/tab-body.c
+++ b/src/tab-body.c
@@ -458,6 +458,11 @@ button_press_cb(WebKitWebView __attribute__((unused)) *web_view,
mq_tab_new_relative(
webkit_hit_test_result_get_link_uri(hit_test_result),
body->tab);
+ } else if (webkit_hit_test_result_context_is_editable(hit_test_result)){
+ /* Let WebKit handle pasting from the primary clipboard into an
+ * editable element. */
+ g_object_unref(hit_test_result);
+ return FALSE;
} else {
clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY);
gtk_clipboard_request_text(clipboard,