bindings: make <Alt+Up> and <Alt+Down> work also on a Linux console

This fixes https://savannah.gnu.org/bugs/?54964.
This commit is contained in:
Benno Schulenberg 2018-11-06 20:46:21 +01:00
parent 7dad21f4f4
commit 15ec0eb3ee

View File

@ -609,6 +609,13 @@ int parse_kbinput(WINDOW *win)
if (modifiers == 0x08)
return ALT_DELETE;
}
/* Is Alt being held? */
if (modifiers == 0x08) {
if (retval == KEY_UP)
return ALT_UP;
if (retval == KEY_DOWN)
return ALT_DOWN;
}
#endif
/* Is Ctrl being held? */
if (modifiers & 0x04) {