summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,