Skip to content

Commit faa9ef5

Browse files
authored
feat: adding the rest of the function keys (#305)
1 parent 6002651 commit faa9ef5

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Diff for: lib/key.enum.ts

+13
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,17 @@ export enum Key {
116116
CapsLock,
117117
ScrollLock,
118118
NumLock,
119+
120+
F13,
121+
F14,
122+
F15,
123+
F16,
124+
F17,
125+
F18,
126+
F19,
127+
F20,
128+
F21,
129+
F22,
130+
F23,
131+
F24,
119132
}

Diff for: lib/provider/native/libnut-keyboard.class.ts

+12
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ export default class KeyboardAction implements KeyboardProviderInterface {
4444
[Key.F10, "f10"],
4545
[Key.F11, "f11"],
4646
[Key.F12, "f12"],
47+
[Key.F13, "f13"],
48+
[Key.F14, "f14"],
49+
[Key.F15, "f15"],
50+
[Key.F16, "f16"],
51+
[Key.F17, "f17"],
52+
[Key.F18, "f18"],
53+
[Key.F19, "f19"],
54+
[Key.F20, "f20"],
55+
[Key.F21, "f21"],
56+
[Key.F22, "f22"],
57+
[Key.F23, "f23"],
58+
[Key.F24, "f24"],
4759

4860
[Key.Num0, "0"],
4961
[Key.Num1, "1"],

0 commit comments

Comments
 (0)