tweaks: judge from the key code itself whether it is a Meta keystroke
Этот коммит содержится в:
родитель
196e913681
Коммит
58597b6d9b
@ -419,7 +419,8 @@ int the_code_for(void (*func)(void), int defaultval)
|
|||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
return defaultval;
|
return defaultval;
|
||||||
|
|
||||||
meta_key = s->meta;
|
meta_key = (0x20 <= s->keycode && s->keycode <= 0x7E);
|
||||||
|
|
||||||
return s->keycode;
|
return s->keycode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1689,7 +1689,7 @@ int get_mouseinput(int *mouse_y, int *mouse_x, bool allow_shortcuts)
|
|||||||
const keystruct *shortcut = first_sc_for(currmenu, f->func);
|
const keystruct *shortcut = first_sc_for(currmenu, f->func);
|
||||||
|
|
||||||
put_back(shortcut->keycode);
|
put_back(shortcut->keycode);
|
||||||
if (shortcut->meta)
|
if (0x20 <= shortcut->keycode && shortcut->keycode <= 0x7E)
|
||||||
put_back(ESC_CODE);
|
put_back(ESC_CODE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user