Backspace without CTRL should send '^?'

Summary:
This matches XTerm behaviour, so that pressing Alt+Backspace will send
\E + Del, which is the expected behaviour in some apps (e.g. emacs),
and it also matches the Konsole behaviour before commit
5345bbb0af

BUG: 394276
FIXED-IN: 18.04.2

Test Plan:
- Make sure you have the default .keytab file without any modifications
- Run `emacs -Q -nw`, press Ctrl+h k, to invoke the describe key functionality
- Press Alt+Backspace, it'll send C-M-h
- Apply the diff and test again, now it should send M-Del

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: konsole-devel, #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D12899
This commit is contained in:
Ahmad Samir
2018-05-16 09:35:45 -04:00
committed by Kurt Hindenburg
parent f65e5a5797
commit be7181c93a

View File

@@ -34,8 +34,12 @@ key Return-Shift+NewLine : "\r\n"
key Return+Shift : "\EOM"
# Backspace and Delete codes are preserving CTRL-H.
# Backspace without any modifiers sends '^?'
key Backspace -AnyMod : "\x7f"
#
# Backspace without CTRL sends '^?'; this matches XTerm behaviour, so that
# pressing Alt+Backspace will send \E + Del, which is the expected behaviour
# in some apps (e.g. emacs), and it was the behaviour before the commit
# that add the Backspace +Control rule
key Backspace -Control : "\x7f"
# Match xterm behaviour: Backspace sends '^H' when Control is pressed
# BS, hex \x08, \b