mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 12:23:46 +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:
parent
fb636995c8
commit
11b39f76fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user