From 46e549700a47fa5894223d6018ac4ca228444717 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 26 Mar 2003 13:25:21 +0000 Subject: [PATCH] check for invalid keys properly --- plugins/keyboard/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2