Fixed parsing of hotkeys. Now will read:

alt+p
and
alt-p

as same hotkey.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-09-25 21:06:38 +03:00 committed by Ilia Maslakov
parent 52205790b2
commit 3b7d4c29ec

View File

@ -1232,10 +1232,11 @@ lookup_key (char *keyname)
if (keyname == NULL)
return 0;
keys = g_strsplit (keyname, "-", -1);
keys = g_strsplit_set (keyname, "-+", -1);
keys_count = g_strv_length (keys);
for (i = keys_count - 1; i >= 0; i--) {
if (keys[i] != NULL && keys[i][0] != 0) {
g_strstrip(keys[i]);
key = lookup_keyname (keys[i]);
if (key & KEY_M_CTRL) {
if (k < 256)