From 18bbd2ac6f69973ab9961e82f54a1e318dfbf6d5 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 13 Jan 2020 23:31:51 -0800 Subject: [PATCH] termwiz: fixup input parser to match backspace/delete With the changes in f0e94084d1df36009b879b06e9cfd2be946168e8 I noticed that backspace and delete were inverted here in termwiz. This diff adjusts the input parser to match. --- termwiz/src/input.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/termwiz/src/input.rs b/termwiz/src/input.rs index 421c46c75..644e9c94c 100644 --- a/termwiz/src/input.rs +++ b/termwiz/src/input.rs @@ -619,8 +619,7 @@ impl InputParser { for (keycode, c) in &[ (KeyCode::Insert, b'2'), - // TODO: application delete key? See https://github.com/wez/wezterm/issues/52 - // (KeyCode::Delete, b'3'), + (KeyCode::Delete, b'3'), (KeyCode::Home, b'1'), (KeyCode::End, b'4'), (KeyCode::PageUp, b'5'), @@ -639,7 +638,7 @@ impl InputParser { map.insert( &[0x7f], InputEvent::Key(KeyEvent { - key: KeyCode::Delete, + key: KeyCode::Backspace, modifiers: Modifiers::NONE, }), );