mirror of
https://github.com/sayanarijit/xplr.git
synced 2024-09-11 11:05:39 +03:00
Add support for function keys upto F24
This commit is contained in:
parent
1629398adf
commit
75dabeb283
26
src/input.rs
26
src/input.rs
@ -18,6 +18,18 @@ pub enum Key {
|
||||
F10,
|
||||
F11,
|
||||
F12,
|
||||
F13,
|
||||
F14,
|
||||
F15,
|
||||
F16,
|
||||
F17,
|
||||
F18,
|
||||
F19,
|
||||
F20,
|
||||
F21,
|
||||
F22,
|
||||
F23,
|
||||
F24,
|
||||
|
||||
Num0,
|
||||
Num1,
|
||||
@ -339,7 +351,19 @@ impl Key {
|
||||
KeyCode::F(9) => Key::F9,
|
||||
KeyCode::F(10) => Key::F10,
|
||||
KeyCode::F(11) => Key::F11,
|
||||
KeyCode::F(12) => Key::F12,
|
||||
KeyCode::F(13) => Key::F13,
|
||||
KeyCode::F(12) => Key::F13,
|
||||
KeyCode::F(14) => Key::F14,
|
||||
KeyCode::F(15) => Key::F15,
|
||||
KeyCode::F(16) => Key::F16,
|
||||
KeyCode::F(17) => Key::F17,
|
||||
KeyCode::F(18) => Key::F18,
|
||||
KeyCode::F(19) => Key::F19,
|
||||
KeyCode::F(20) => Key::F20,
|
||||
KeyCode::F(21) => Key::F21,
|
||||
KeyCode::F(22) => Key::F22,
|
||||
KeyCode::F(23) => Key::F23,
|
||||
KeyCode::F(24) => Key::F24,
|
||||
|
||||
KeyCode::Backspace => Key::Backspace,
|
||||
KeyCode::Left => Key::Left,
|
||||
|
Loading…
Reference in New Issue
Block a user