From: Dana Jansens Date: Wed, 26 Mar 2003 13:25:21 +0000 (+0000) Subject: check for invalid keys properly X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=46e549700a47fa5894223d6018ac4ca228444717;p=chaz%2Fopenbox check for invalid keys properly --- diff --git a/plugins/keyboard/translate.c b/plugins/keyboard/translate.c index d1fdc58d..25e1c6a6 100644 --- a/plugins/keyboard/translate.c +++ b/plugins/keyboard/translate.c @@ -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; }