Commit 5345bbb0 authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg

Match xterm behaviour when pressing Ctrl+Backspace

Summary:
Change the default keyboard translator to match xterm behaviour:
 - Pressing Backspace without any modifiers sends '^?', ASCII DEL
   character
 - Pressing Control+Backspace sends '^H', BS character

BUG: 391075

Test Plan:
- Before applying the patch pressing Ctrl+V (to insert verbatim) then
  Backspace, sends '^?'; the same happens with Ctrl+Backspace
- With the patch:
  - pressing Ctrl+V then Backspace sends '^?'
  - pressing Ctrl+V then Ctrl+Backspace sends '^H'

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: ngraham

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D10884
parent 09ed37cc
......@@ -33,8 +33,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"
key Backspace : "\x7f"
# Match xterm behaviour: Backspace sends '^H' when Control is pressed
# BS, hex \x08, \b
key Backspace +Control : "\b"
# Arrow keys in VT52 mode
# shift up/down are reserved for scrolling.
......
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