tweaks: don't bother setting meta_key to false when a key is invalid
That is a task for the key-getting routine.
Этот коммит содержится в:
родитель
f33d8cae30
Коммит
9cd30d4917
@ -1601,7 +1601,6 @@ int do_input(bool allow_funcs)
|
|||||||
if (!have_shortcut) {
|
if (!have_shortcut) {
|
||||||
if (is_ascii_cntrl_char(input) || meta_key || !is_byte(input)) {
|
if (is_ascii_cntrl_char(input) || meta_key || !is_byte(input)) {
|
||||||
unbound_key(input);
|
unbound_key(input);
|
||||||
meta_key = FALSE;
|
|
||||||
input = ERR;
|
input = ERR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,11 +69,9 @@ int do_statusbar_input(bool *ran_func, bool *finished,
|
|||||||
if (input == KEY_MOUSE) {
|
if (input == KEY_MOUSE) {
|
||||||
if (do_statusbar_mouse() == 1)
|
if (do_statusbar_mouse() == 1)
|
||||||
input = get_kbinput(bottomwin);
|
input = get_kbinput(bottomwin);
|
||||||
else {
|
else
|
||||||
meta_key = FALSE;
|
|
||||||
input = ERR;
|
input = ERR;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Check for a shortcut in the current list. */
|
/* Check for a shortcut in the current list. */
|
||||||
@ -88,7 +86,6 @@ int do_statusbar_input(bool *ran_func, bool *finished,
|
|||||||
if (!have_shortcut) {
|
if (!have_shortcut) {
|
||||||
if (is_ascii_cntrl_char(input) || meta_key || !is_byte(input)) {
|
if (is_ascii_cntrl_char(input) || meta_key || !is_byte(input)) {
|
||||||
beep();
|
beep();
|
||||||
meta_key = FALSE;
|
|
||||||
input = ERR;
|
input = ERR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user