Skip to content

Commit

Permalink
(NT-67) Sorted key enum to make it easier to follow
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Feb 11, 2024
1 parent 42145fb commit 58c12fb
Showing 1 changed file with 80 additions and 78 deletions.
158 changes: 80 additions & 78 deletions lib/key.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@
* The {@link Key} enum represents keys of a standard 105 key US layout keyboard
*/
export enum Key {
Space,
Escape,
Tab,

LeftAlt,
LeftControl,
RightAlt,
RightControl,

LeftShift,
LeftSuper,
RightShift,
RightSuper,

F1,
F2,
Expand All @@ -41,7 +29,11 @@ export enum Key {
F23,
F24,

Num0,
Print,
ScrollLock,
Pause,

Grave,
Num1,
Num2,
Num3,
Expand All @@ -51,84 +43,103 @@ export enum Key {
Num7,
Num8,
Num9,
Num0,

Minus,
Equal,
Backspace,

Insert,
Home,
PageUp,
NumLock,
Divide,
Multiply,
Subtract,

Tab,
Q,
W,
E,
R,
T,
Y,
U,
I,
O,
P,
LeftBracket,
RightBracket,
Backslash,

Delete,
End,
PageDown,

NumPad7,
NumPad8,
NumPad9,
Add,

CapsLock,
A,
B,
C,
S,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q,
R,
S,
T,
U,
V,
W,
X,
Y,
Z,

Grave,
Minus,
Equal,
Backspace,
LeftBracket,
RightBracket,
Backslash,
Semicolon,
Quote,
Return,

NumPad4,
NumPad5,
NumPad6,

LeftShift,
Z,
X,
C,
V,
B,
N,
M,
Comma,
Period,
Slash,
RightShift,

Left,
Up,
Right,
Down,

Print,
Pause,
Insert,
Delete,
Home,
End,
PageUp,
PageDown,

Add,
Subtract,
Multiply,
Divide,
Decimal,
Enter,
Clear,

NumPad0,
NumPad1,
NumPad2,
NumPad3,
NumPad4,
NumPad5,
NumPad6,
NumPad7,
NumPad8,
NumPad9,
Enter,

CapsLock,
ScrollLock,
NumLock,
LeftControl,
LeftSuper,
LeftWin,
LeftCmd,
LeftAlt,
Space,
RightAlt,
RightSuper,
RightWin,
RightCmd,
Menu,
RightControl,
Fn,

Left,
Down,
Right,

NumPad0,
Decimal,
Clear,

AudioMute,
AudioVolDown,
Expand All @@ -142,13 +153,4 @@ export enum Key {
AudioForward,
AudioRepeat,
AudioRandom,

LeftWin,
RightWin,
LeftCmd,
RightCmd,

Menu,

Fn,
}

0 comments on commit 58c12fb

Please sign in to comment.