1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

backspace usually generates DEL

Despite the name, the backspace key on the keyboard usually generates a DEL
characters ('\x7F'), so DEL should be mapped to backspace.
This commit is contained in:
Mark Thomas 2019-04-21 04:18:03 +01:00 committed by Wez Furlong
parent fb636995c8
commit 11b39f76fd

View File

@ -574,7 +574,7 @@ impl InputParser {
map.insert(
&[0x7f],
InputEvent::Key(KeyEvent {
key: KeyCode::Delete,
key: KeyCode::Backspace,
modifiers: Modifiers::NONE,
}),
);
@ -898,7 +898,7 @@ mod test {
}),
InputEvent::Key(KeyEvent {
modifiers: Modifiers::NONE,
key: KeyCode::Delete,
key: KeyCode::Backspace,
}),
],
inputs