Skip to content

Commit f008cde

Browse files
committed
(#457) Added new keys to libnut keyboard mapping
1 parent 4376f5b commit f008cde

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/provider/native/libnut-keyboard.class.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,15 @@ export default class KeyboardAction implements KeyboardProviderInterface {
8383
[Key.Tab, "tab"],
8484
[Key.LeftAlt, "alt"],
8585
[Key.LeftControl, "control"],
86-
[Key.RightAlt, "alt"],
87-
[Key.RightControl, "control"],
86+
[Key.RightAlt, "right_alt"],
87+
[Key.RightControl, "right_control"],
88+
[Key.LeftWin, "win"],
89+
[Key.RightWin, "right_win"],
90+
[Key.LeftCmd, "cmd"],
91+
[Key.RightCmd, "right_cmd"],
92+
93+
[Key.Menu, "menu"],
94+
[Key.Fn, "fn"],
8895

8996
[Key.LeftShift, "shift"],
9097
[Key.LeftSuper, "command"],

0 commit comments

Comments
 (0)