don't accept non-letter keys for shortcuts, they can't be shortcuts anyways and it was mis-matching
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
openbox/event.c
→
openbox/event.c
@@ -1249,6 +1249,9 @@ {
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;