input: add the shifted PageUp and PageDown keycodes produced by VTE
Modern VTE-based terminals now produce codes for those keys and no longer swallow them when nano is active. This addresses https://savannah.gnu.org/bugs/?49746.master
parent
656563beda
commit
c9680b8b64
|
@ -632,12 +632,18 @@ int parse_kbinput(WINDOW *win)
|
||||||
case KEY_C1: /* End (1) on keypad with NumLock off. */
|
case KEY_C1: /* End (1) on keypad with NumLock off. */
|
||||||
return KEY_END;
|
return KEY_END;
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
case SHIFT_PAGEUP: /* Fake key, from Shift+Alt+Up. */
|
#ifdef KEY_SPREVIOUS
|
||||||
|
case KEY_SPREVIOUS:
|
||||||
|
#endif
|
||||||
|
case SHIFT_PAGEUP: /* Fake key, from Shift+Alt+Up. */
|
||||||
shift_held = TRUE;
|
shift_held = TRUE;
|
||||||
#endif
|
#endif
|
||||||
case KEY_A3: /* PageUp (9) on keypad with NumLock off. */
|
case KEY_A3: /* PageUp (9) on keypad with NumLock off. */
|
||||||
return KEY_PPAGE;
|
return KEY_PPAGE;
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
|
#ifdef KEY_SNEXT
|
||||||
|
case KEY_SNEXT:
|
||||||
|
#endif
|
||||||
case SHIFT_PAGEDOWN: /* Fake key, from Shift+Alt+Down. */
|
case SHIFT_PAGEDOWN: /* Fake key, from Shift+Alt+Down. */
|
||||||
shift_held = TRUE;
|
shift_held = TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue