Commit 9cd30d49 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: don't bother setting meta_key to false when a key is invalid

That is a task for the key-getting routine.
parent f33d8cae
Showing with 1 addition and 5 deletions
+1 -5
......@@ -1601,7 +1601,6 @@ int do_input(bool allow_funcs)
if (!have_shortcut) {
if (is_ascii_cntrl_char(input) || meta_key || !is_byte(input)) {
unbound_key(input);
meta_key = FALSE;
input = ERR;
}
}
......
......@@ -69,10 +69,8 @@ int do_statusbar_input(bool *ran_func, bool *finished,
if (input == KEY_MOUSE) {
if (do_statusbar_mouse() == 1)
input = get_kbinput(bottomwin);
else {
meta_key = FALSE;
else
input = ERR;
}
}
#endif
......@@ -88,7 +86,6 @@ int do_statusbar_input(bool *ran_func, bool *finished,
if (!have_shortcut) {
if (is_ascii_cntrl_char(input) || meta_key || !is_byte(input)) {
beep();
meta_key = FALSE;
input = ERR;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment