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:
Christian Dywan 2009-09-04 23:37:00 +02:00
parent f74b860d66
commit 2bff26f90a

View file

@ -1010,6 +1010,9 @@ gtk_widget_button_press_event_cb (WebKitWebView* web_view,
else if (view->middle_click_opens_selection)
{
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 (
gtk_widget_get_display (GTK_WIDGET (view)),
GDK_SELECTION_PRIMARY);