added rxvt Home and End escape codes

This commit is contained in:
IGI-111 2016-07-15 12:19:02 +02:00
parent 0e74a7672f
commit 3552c6eae0
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ impl<I: Iterator<Item = Result<char, io::CharsError>>> Iterator for Keys<I> {
Some(Ok('F')) => Key::End,
Some(Ok(c @ '1' ... '6')) => match self.chars.next() {
Some(Ok('~')) => match c {
'1' => Key::Home,
'2' => Key::Insert,
'1' | '7' => Key::Home,
'2' | '8' => Key::Insert,
'3' => Key::Delete,
'4' => Key::End,
'5' => Key::PageUp,