Commit 66bc0703 authored by Jan-Michael Brummer's avatar Jan-Michael Brummer Committed by Christian Hergert
Browse files

Suggestions: Fix TAB completion in entry

Change strict key state check to CONTROL and SHIFT mask only. Without this
change also NUM key is considered and TAB completion will not work with NUM pad turned on.

Fixes: GNOME/libdazzle#22
parent 123e5b9f
......@@ -151,7 +151,7 @@ dzl_suggestion_entry_key_press_event (GtkWidget *widget,
* If Tab was pressed, and there is uncommitted suggested text,
* commit it and stop propagation of the key press.
*/
if (key->keyval == GDK_KEY_Tab && (key->state & GDK_MODIFIER_MASK) == 0)
if (key->keyval == GDK_KEY_Tab && (key->state & (GDK_SHIFT_MASK | GDK_CONTROL_MASK)) == 0)
{
const gchar *typed_text;
DzlSuggestion *suggestion;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment