mirror of
https://github.com/wez/wezterm.git
synced 2024-11-22 22:42:48 +03:00
macos: fixup Backspace key
refs: https://github.com/wez/wezterm/issues/1891#issuecomment-1103501418
This commit is contained in:
parent
bebad33298
commit
924b63eb42
@ -2282,6 +2282,13 @@ impl WindowView {
|
||||
{
|
||||
(KeyCode::Char(*raw), None)
|
||||
}
|
||||
(KeyCode::Char('\u{7f}'), Some(KeyCode::Char('\u{08}'))) => {
|
||||
// Special case: macOS reported backspace as \u7f but we set
|
||||
// the raw keycode and rewrote unmode to \u08 based on the
|
||||
// vk value above.
|
||||
// We want to propagate \u08.
|
||||
(KeyCode::Char('\u{08}'), None)
|
||||
}
|
||||
_ => (key, raw),
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user