imcontext: Fix typo on ctrl+shift+u hex sequences handling

This condition was meant to exit when the event has no keyval (eg. fed a
non-keyboard event somehow).
This commit is contained in:
Carlos Garnacho
2017-10-02 18:11:53 +02:00
parent 604da889ea
commit 3bdc9d7b3a

View File

@@ -1102,7 +1102,7 @@ canonical_hex_keyval (GdkEventKey *event)
gint n_vals = 0;
gint i;
if (gdk_event_get_keyval ((GdkEvent *) event, &event_keyval))
if (!gdk_event_get_keyval ((GdkEvent *) event, &event_keyval))
return 0;
/* See if the keyval is already a hex digit */