Don't middle click open when there's an editable
This is still not a complete solution but better than before.
This commit is contained in:
parent
f74b860d66
commit
2bff26f90a
1 changed files with 3 additions and 0 deletions
|
@ -1010,6 +1010,9 @@ gtk_widget_button_press_event_cb (WebKitWebView* web_view,
|
||||||
else if (view->middle_click_opens_selection)
|
else if (view->middle_click_opens_selection)
|
||||||
{
|
{
|
||||||
guint i = 0;
|
guint i = 0;
|
||||||
|
/* FIXME: This isn't quite correct, we need mouse context */
|
||||||
|
if (webkit_web_view_can_paste_clipboard (WEBKIT_WEB_VIEW (view->web_view)))
|
||||||
|
return FALSE;
|
||||||
clipboard = gtk_clipboard_get_for_display (
|
clipboard = gtk_clipboard_get_for_display (
|
||||||
gtk_widget_get_display (GTK_WIDGET (view)),
|
gtk_widget_get_display (GTK_WIDGET (view)),
|
||||||
GDK_SELECTION_PRIMARY);
|
GDK_SELECTION_PRIMARY);
|
||||||
|
|
Loading…
Reference in a new issue