bindings: recognize <Ctrl+Shift+Delete> also on a Linux console

This fixes https://savannah.gnu.org/bugs/?54716.
master
Benno Schulenberg 2018-09-23 19:43:27 +02:00
parent be69a7c299
commit fe6cb6e516
1 changed files with 3 additions and 0 deletions

View File

@ -599,6 +599,9 @@ int parse_kbinput(WINDOW *win)
shift_held = TRUE;
}
#endif
/* Are both Shift and Ctrl being held while Delete is pressed? */
if ((modifiers & 0x05) == 0x05 && retval == KEY_DC)
return the_code_for(do_cut_prev_word, KEY_BACKSPACE);
/* Is Ctrl being held? */
if (modifiers & 0x04) {
if (retval == KEY_UP)