mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-29 08:03:19 +03:00
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:
parent
7dad21f4f4
commit
15ec0eb3ee
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user