From fe6cb6e5164aa724e9a5d1c48c9dd2b707a8a2fe Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 23 Sep 2018 19:43:27 +0200 Subject: [PATCH] bindings: recognize also on a Linux console This fixes https://savannah.gnu.org/bugs/?54716. --- src/winio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/winio.c b/src/winio.c index 9de1247d..d83ec1e0 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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)