mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 21:32:13 +03:00
input: revert 8f8ee4e87e
this makes us consistent in behavior with xterm: CTRL-H -> 0x08 Backspace -> 0x7f CTRL-Backspace -> 0x08 refs: #1508 refs: #1495
This commit is contained in:
parent
ca8362ff08
commit
94a35c9d1e
@ -893,12 +893,6 @@ fn normalize_shift(key: KeyCode, modifiers: Modifiers) -> (KeyCode, Modifiers) {
|
||||
fn normalize_ctrl(key: KeyCode, modifiers: Modifiers) -> (KeyCode, Modifiers) {
|
||||
if modifiers.contains(Modifiers::CTRL) {
|
||||
if let KeyCode::Char(c) = key {
|
||||
if c == '\u{8}' {
|
||||
// Leave backspace alone!
|
||||
// <https://github.com/wez/wezterm/issues/1495>
|
||||
return (key, modifiers);
|
||||
}
|
||||
|
||||
if (c as u32) < 0x20 {
|
||||
let de_ctrl = ((c as u8) | 0x40) as char;
|
||||
return (KeyCode::Char(de_ctrl.to_ascii_lowercase()), modifiers);
|
||||
|
Loading…
Reference in New Issue
Block a user