From fd8738ea0e8a8ea3569edde6c22c89167836b8d4 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 27 Oct 2019 16:33:48 -0700 Subject: [PATCH] window: macos: rewrite Del to Backspace this is more appropriate for vim --- window/src/os/macos/window.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/window/src/os/macos/window.rs b/window/src/os/macos/window.rs index dcc5e8f4f..c7608dcb3 100644 --- a/window/src/os/macos/window.rs +++ b/window/src/os/macos/window.rs @@ -626,6 +626,8 @@ impl WindowView { '\u{f72b}' => KeyCode::End, '\u{f72c}' => KeyCode::PageUp, '\u{f72d}' => KeyCode::PageDown, + // rewrite Del to Backspace + '\u{7f}' => KeyCode::Char('\u{8}'), _ => KeyCode::Char(first_char), } } else {