Merge branch 'backtab' into 'master'

Backtab key

See merge request redox-os/termion!157
This commit is contained in:
Jeremy Soller 2019-06-12 23:12:12 +00:00
commit 68d765305c
1 changed files with 3 additions and 0 deletions

View File

@ -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<I>(iter: &mut I) -> Option<Event>
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();