[Xfce4-commits] <midori:master> Don't prioritize key presses because that breaks inline find
Christian Dywan
noreply at xfce.org
Sun Nov 29 15:12:01 CET 2009
Updating branch refs/heads/master
to a7ca507b3a2ad8246fae380e84656f0debe57074 (commit)
from dd97edf8565148246435a6b36885b1d66906d9e3 (commit)
commit a7ca507b3a2ad8246fae380e84656f0debe57074
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Nov 29 14:31:23 2009 +0100
Don't prioritize key presses because that breaks inline find
This 'breaks' using single character shortcuts in conjunction
with inline find, but we can live with that.
midori/midori-browser.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 8afd16a..2dc41e7 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -1733,13 +1733,7 @@ midori_browser_key_press_event (GtkWidget* widget,
GdkEventKey* event)
{
GtkWindow* window = GTK_WINDOW (widget);
- GtkWidget* focus = gtk_window_get_focus (window);
GtkWidgetClass* widget_class;
- gboolean priority = GTK_IS_EDITABLE (focus) || GTK_IS_TEXT_VIEW (focus)
- || WEBKIT_IS_WEB_VIEW (focus);
-
- if (priority && !event->state && gtk_window_propagate_key_event (window, event))
- return TRUE;
if (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK))
if (sokoke_window_activate_key (window, event))
@@ -1752,7 +1746,7 @@ midori_browser_key_press_event (GtkWidget* widget,
if (sokoke_window_activate_key (window, event))
return TRUE;
- if (!priority && event->state && gtk_window_propagate_key_event (window, event))
+ if (event->state && gtk_window_propagate_key_event (window, event))
return TRUE;
widget_class = g_type_class_peek_static (g_type_parent (GTK_TYPE_WINDOW));
More information about the Xfce4-commits
mailing list