mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Revert "Decode arrow keys as sent by urxvt"
This does not work as-is ("CSI a" is shift-up, not up).
I'm not sure if we want to implement these.
It's not a regression so there is no pressure.
This reverts commit 350598cb99
.
This commit is contained in:
parent
fcf7cd81cf
commit
e4bcee2727
1 changed files with 8 additions and 8 deletions
|
@ -854,10 +854,10 @@ pub trait InputEventQueuer {
|
||||||
_ => return None,
|
_ => return None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
b'A' | b'a' => masked_key(key::Up, None),
|
b'A' => masked_key(key::Up, None),
|
||||||
b'B' | b'b' => masked_key(key::Down, None),
|
b'B' => masked_key(key::Down, None),
|
||||||
b'C' | b'c' => masked_key(key::Right, None),
|
b'C' => masked_key(key::Right, None),
|
||||||
b'D' | b'd' => masked_key(key::Left, None),
|
b'D' => masked_key(key::Left, None),
|
||||||
b'E' => masked_key('5', None), // Numeric keypad
|
b'E' => masked_key('5', None), // Numeric keypad
|
||||||
b'F' => masked_key(key::End, None), // PC/xterm style
|
b'F' => masked_key(key::End, None), // PC/xterm style
|
||||||
b'H' => masked_key(key::Home, None), // PC/xterm style
|
b'H' => masked_key(key::Home, None), // PC/xterm style
|
||||||
|
@ -1029,10 +1029,10 @@ pub trait InputEventQueuer {
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
let key = match code {
|
let key = match code {
|
||||||
b' ' => Key{modifiers, codepoint: key::Space},
|
b' ' => Key{modifiers, codepoint: key::Space},
|
||||||
b'A' | b'a' => Key{modifiers, codepoint: key::Up},
|
b'A' => Key{modifiers, codepoint: key::Up},
|
||||||
b'B' | b'b' => Key{modifiers, codepoint: key::Down},
|
b'B' => Key{modifiers, codepoint: key::Down},
|
||||||
b'C' | b'c' => Key{modifiers, codepoint: key::Right},
|
b'C' => Key{modifiers, codepoint: key::Right},
|
||||||
b'D' | b'd' => Key{modifiers, codepoint: key::Left},
|
b'D' => Key{modifiers, codepoint: key::Left},
|
||||||
b'F' => Key{modifiers, codepoint: key::End},
|
b'F' => Key{modifiers, codepoint: key::End},
|
||||||
b'H' => Key{modifiers, codepoint: key::Home},
|
b'H' => Key{modifiers, codepoint: key::Home},
|
||||||
b'I' => Key{modifiers, codepoint: key::Tab},
|
b'I' => Key{modifiers, codepoint: key::Tab},
|
||||||
|
|
Loading…
Reference in a new issue