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 != '#')
|
if(*str != '#')
|
||||||
{
|
{
|
||||||
key->keysym = XStringToKeysym(str);
|
key->keysym = XStringToKeysym(str);
|
||||||
if (!key->keysym && len == 1)
|
if (!key->keysym)
|
||||||
key->keysym = *str;
|
{
|
||||||
else
|
if (len == 1)
|
||||||
warn("there's no keysym named \"%s\"", str);
|
key->keysym = *str;
|
||||||
|
else
|
||||||
|
warn("there's no keysym named \"%s\"", str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
key->keycode = atoi(str + 1);
|
key->keycode = atoi(str + 1);
|
||||||
|
|
Loading…
Reference in New Issue