diff options
author | Xabier Rodriguez Calvar <xrcalvar@igalia.com> | 2010-02-12 18:42:56 +0100 |
---|---|---|
committer | Xabier Rodriguez Calvar <xrcalvar@igalia.com> | 2010-02-15 19:46:11 +0100 |
commit | a82355b9e5608f8c70eded70418c18e548e86602 (patch) | |
tree | be42f88ce5ffd384c2b31c783d01b92693d4ea76 /hildon/hildon-live-search.c | |
parent | 835aeb6cf94b0f9af988e9f3bae5c4ea72c985ff (diff) |
Avoid reinjecting control keys presses to the live search entry.
Diffstat (limited to 'hildon/hildon-live-search.c')
-rw-r--r-- | hildon/hildon-live-search.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c index 49d8e92..3dd5dbd 100644 --- a/hildon/hildon-live-search.c +++ b/hildon/hildon-live-search.c @@ -380,7 +380,10 @@ on_key_press_event (GtkWidget *widget, if (GTK_WIDGET_VISIBLE (priv->kb_focus_widget)) { /* If the live search is hidden, Ctrl+whatever is always * passed to the focus widget */ - if (GTK_WIDGET_VISIBLE (live_search) || !(event->state & GDK_CONTROL_MASK)) { + if (GTK_WIDGET_VISIBLE (live_search) || + !(event->state & GDK_CONTROL_MASK || + event->keyval == GDK_Control_L || + event->keyval == GDK_Control_R)) { GdkEvent *new_event; /* If the entry is realized and has focus, it is enough to catch events. |