tweaks: remove some unnecessary keycodes from a switch statement

These codes are the basic codes that get assigned for the movement keys
in the list of shortcuts -- they don't need any translation.
master
Benno Schulenberg 2016-07-11 16:22:30 +02:00
parent 5806bf5249
commit b472f5a633
1 changed files with 4 additions and 21 deletions

View File

@ -504,56 +504,39 @@ int parse_kbinput(WINDOW *win)
#ifdef KEY_SLEFT
/* Slang doesn't support KEY_SLEFT. */
case KEY_SLEFT:
#endif
case KEY_LEFT:
return sc_seq_or(do_left, keycode);
#endif
#ifdef KEY_SRIGHT
/* Slang doesn't support KEY_SRIGHT. */
case KEY_SRIGHT:
#endif
case KEY_RIGHT:
return sc_seq_or(do_right, keycode);
#endif
#ifdef KEY_SUP
/* ncurses and Slang don't support KEY_SUP. */
case KEY_SUP:
#endif
case KEY_UP:
return sc_seq_or(do_up_void, keycode);
#endif
#ifdef KEY_SDOWN
/* ncurses and Slang don't support KEY_SDOWN. */
case KEY_SDOWN:
#endif
case KEY_DOWN:
return sc_seq_or(do_down_void, keycode);
#endif
#ifdef KEY_SHOME
/* HP-UX 10-11 and Slang don't support KEY_SHOME. */
case KEY_SHOME:
#endif
#ifdef KEY_HOME
case KEY_HOME:
#endif
case KEY_A1: /* Home (7) on keypad with NumLock off. */
return sc_seq_or(do_home, keycode);
#ifdef KEY_SEND
/* HP-UX 10-11 and Slang don't support KEY_SEND. */
case KEY_SEND:
#endif
#ifdef KEY_END
case KEY_END:
#endif
case KEY_C1: /* End (1) on keypad with NumLock off. */
return sc_seq_or(do_end, keycode);
case KEY_PPAGE:
case KEY_A3: /* PageUp (9) on keypad with NumLock off. */
return sc_seq_or(do_page_up, keycode);
case KEY_NPAGE:
case KEY_C3: /* PageDown (3) on keypad with NumLock off. */
return sc_seq_or(do_page_down, keycode);
case KEY_ENTER:
return sc_seq_or(do_enter, keycode);
case KEY_BACKSPACE:
return sc_seq_or(do_backspace, keycode);
#ifdef KEY_SDC
/* Slang doesn't support KEY_SDC. */
case KEY_SDC: