Commit c9680b8b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
......@@ -632,12 +632,18 @@ int parse_kbinput(WINDOW *win)
case KEY_C1: /* End (1) on keypad with NumLock off. */
return KEY_END;
#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;
#endif
case KEY_A3: /* PageUp (9) on keypad with NumLock off. */
return KEY_PPAGE;
#ifndef NANO_TINY
#ifdef KEY_SNEXT
case KEY_SNEXT:
#endif
case SHIFT_PAGEDOWN: /* Fake key, from Shift+Alt+Down. */
shift_held = TRUE;
#endif
......
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