Commit 0d5f9184 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

input: add some missing keycodes to the parsing routine

Add them so that <Esc> followed by <Home> will simply do "Home" instead of
reporting an unbound key.  The same for <End>, <PageUp> and <PageDown>.

This restores the behavior from before nano-2.3.5.
parent 9c7940b5
Showing with 4 additions and 0 deletions
+4 -0
......@@ -535,6 +535,7 @@ int parse_kbinput(WINDOW *win)
/* HP-UX 10-11 and Slang don't support KEY_SHOME. */
case KEY_SHOME:
#endif
case KEY_HOME:
case KEY_A1: /* Home (7) on numeric keypad with
* NumLock off. */
retval = sc_seq_or(do_home, *kbinput);
......@@ -557,10 +558,12 @@ int parse_kbinput(WINDOW *win)
retval = sc_seq_or(do_insertfile_void, *kbinput);
break;
#endif
case KEY_NPAGE:
case KEY_C3: /* PageDown (4) on numeric keypad with
* NumLock off. */
retval = sc_seq_or(do_page_down, *kbinput);
break;
case KEY_PPAGE:
case KEY_A3: /* PageUp (9) on numeric keypad with
* NumLock off. */
retval = sc_seq_or(do_page_up, *kbinput);
......@@ -578,6 +581,7 @@ int parse_kbinput(WINDOW *win)
/* HP-UX 10-11 and Slang don't support KEY_SEND. */
case KEY_SEND:
#endif
case KEY_END:
retval = sc_seq_or(do_end, *kbinput);
break;
#ifdef KEY_BEG
......
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