projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9d8151
)
don't accept non-letter keys for shortcuts, they can't be shortcuts anyways and it...
author
Dana Jansens
<danakj@orodu.net>
Wed, 2 May 2007 00:02:02 +0000
(
00:02
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 2 May 2007 00:02:02 +0000
(
00:02
+0000)
openbox/event.c
patch
|
blob
|
history
diff --git
a/openbox/event.c
b/openbox/event.c
index
78768a6
..
5d6b62b
100644
(file)
--- a/
openbox/event.c
+++ b/
openbox/event.c
@@
-1249,6
+1249,9
@@
static void event_handle_menu_shortcut(XEvent *ev)
const char *key;
if ((key = translate_keycode(ev->xkey.keycode)) == NULL)
return;
+ /* don't accept keys that aren't a single letter, like "space" */
+ if (key[1] != '\0')
+ return;
unikey = g_utf8_get_char_validated(key, -1);
if (unikey == (gunichar)-1 || unikey == (gunichar)-2 || unikey == 0)
return;