Skip to content

Commit 1cb3d38

Browse files
committed
core: Add some KeyCode variants
1 parent 7cbba5b commit 1cb3d38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/events.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,13 @@ pub enum KeyCode {
336336
Backspace = 8,
337337
Tab = 9,
338338
Return = 13,
339+
Command = 15,
339340
Shift = 16,
340341
Control = 17,
341342
Alt = 18,
342343
Pause = 19,
343344
CapsLock = 20,
345+
Numpad = 21,
344346
Escape = 27,
345347
Space = 32,
346348
PgUp = 33,
@@ -401,6 +403,7 @@ pub enum KeyCode {
401403
Numpad9 = 105,
402404
Multiply = 106,
403405
Plus = 107,
406+
NumpadEnter = 108,
404407
NumpadMinus = 109,
405408
NumpadPeriod = 110,
406409
NumpadSlash = 111,
@@ -416,6 +419,9 @@ pub enum KeyCode {
416419
F10 = 121,
417420
F11 = 122,
418421
F12 = 123,
422+
F13 = 124,
423+
F14 = 125,
424+
F15 = 126,
419425
ScrollLock = 145,
420426
Semicolon = 186,
421427
Equals = 187,

0 commit comments

Comments
 (0)