mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
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:
parent
52205790b2
commit
3b7d4c29ec
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user