1
1
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:
Wez Furlong 2022-04-19 23:24:36 -07:00
parent bebad33298
commit 924b63eb42

View File

@ -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),
}
};