mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 23:21:08 +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(
|
map.insert(
|
||||||
&[0x7f],
|
&[0x7f],
|
||||||
InputEvent::Key(KeyEvent {
|
InputEvent::Key(KeyEvent {
|
||||||
key: KeyCode::Delete,
|
key: KeyCode::Backspace,
|
||||||
modifiers: Modifiers::NONE,
|
modifiers: Modifiers::NONE,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@ -898,7 +898,7 @@ mod test {
|
|||||||
}),
|
}),
|
||||||
InputEvent::Key(KeyEvent {
|
InputEvent::Key(KeyEvent {
|
||||||
modifiers: Modifiers::NONE,
|
modifiers: Modifiers::NONE,
|
||||||
key: KeyCode::Delete,
|
key: KeyCode::Backspace,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
inputs
|
inputs
|
||||||
|
Loading…
Reference in New Issue
Block a user