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

This fixes https://savannah.gnu.org/bugs/?54964.
master
Benno Schulenberg 2018-11-06 20:46:21 +01:00
parent 7dad21f4f4
commit 15ec0eb3ee
1 changed files with 7 additions and 0 deletions

View File

@ -609,6 +609,13 @@ int parse_kbinput(WINDOW *win)
if (modifiers == 0x08) if (modifiers == 0x08)
return ALT_DELETE; 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 #endif
/* Is Ctrl being held? */ /* Is Ctrl being held? */
if (modifiers & 0x04) { if (modifiers & 0x04) {