From 7f81389fc84cd001ae0bd45b8ce4f63ed44bd120 Mon Sep 17 00:00:00 2001 From: scauligi Date: Tue, 19 Feb 2019 23:58:19 -0800 Subject: [PATCH] backtab key --- src/event.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/event.rs b/src/event.rs index 6e383a1..4cf45cf 100644 --- a/src/event.rs +++ b/src/event.rs @@ -71,6 +71,8 @@ pub enum Key { PageUp, /// Page Down key. PageDown, + /// Backward Tab key. + BackTab, /// Delete key. Delete, /// Insert key. @@ -155,6 +157,7 @@ fn parse_csi(iter: &mut I) -> Option Some(Ok(b'B')) => Event::Key(Key::Down), Some(Ok(b'H')) => Event::Key(Key::Home), Some(Ok(b'F')) => Event::Key(Key::End), + Some(Ok(b'Z')) => Event::Key(Key::BackTab), Some(Ok(b'M')) => { // X10 emulation mouse encoding: ESC [ CB Cx Cy (6 characters only). let mut next = || iter.next().unwrap().unwrap();