keybinding: only warn when a keysym really couldn't be found.
Signed-off-by: Nathan Weizenbaum <nex342@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b37110efd9
commit
0953d5f870
11
keybinding.c
11
keybinding.c
|
@ -304,10 +304,13 @@ luaA_keystore(keybinding_t *key, const char *str, ssize_t len)
|
|||
if(*str != '#')
|
||||
{
|
||||
key->keysym = XStringToKeysym(str);
|
||||
if (!key->keysym && len == 1)
|
||||
key->keysym = *str;
|
||||
else
|
||||
warn("there's no keysym named \"%s\"", str);
|
||||
if (!key->keysym)
|
||||
{
|
||||
if (len == 1)
|
||||
key->keysym = *str;
|
||||
else
|
||||
warn("there's no keysym named \"%s\"", str);
|
||||
}
|
||||
}
|
||||
else
|
||||
key->keycode = atoi(str + 1);
|
||||
|
|
Loading…
Reference in New Issue