Skip to content

Commit 0eeaa13

Browse files
committed
Merge pull request gchp#46 from dbrodie/add_insert_key
Add an Insert to the Key enum
2 parents 55f991c + 22fe200 commit 0eeaa13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/keyboard.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub enum Key {
99
Up,
1010
Down,
1111
Delete,
12+
Insert,
1213

1314
Home,
1415
End,
@@ -57,7 +58,6 @@ impl Key {
5758
65515 => Some(Key::Left),
5859
65516 => Some(Key::Down),
5960
65517 => Some(Key::Up),
60-
65522 => Some(Key::Delete),
6161
65535 => Some(Key::F(1)),
6262
65534 => Some(Key::F(2)),
6363
65533 => Some(Key::F(3)),
@@ -70,6 +70,8 @@ impl Key {
7070
65526 => Some(Key::F(10)),
7171
65525 => Some(Key::F(11)),
7272
65524 => Some(Key::F(12)),
73+
65523 => Some(Key::Insert),
74+
65522 => Some(Key::Delete),
7375
65521 => Some(Key::Home),
7476
65520 => Some(Key::End),
7577
65519 => Some(Key::PageUp),

0 commit comments

Comments
 (0)