check for invalid keys properly
This commit is contained in:
parent
dffe960084
commit
46e549700a
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ gboolean translate_key(char *str, guint *state, guint *keycode)
|
|||
goto translation_fail;
|
||||
}
|
||||
*keycode = XKeysymToKeycode(ob_display, sym);
|
||||
if (!keycode) {
|
||||
if (!*keycode) {
|
||||
g_warning("Key '%s' does not exist on the display.", l);
|
||||
goto translation_fail;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue