From 4376f5bae3c799e57c4c74e41b7b7bccad5825d3 Mon Sep 17 00:00:00 2001 From: Simon Hofmann <mail@simon-hofmann.org> Date: Thu, 2 Mar 2023 22:14:57 +0100 Subject: [PATCH 1/2] (#457) Extended key enum --- lib/key.enum.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/key.enum.ts b/lib/key.enum.ts index f708d9f3..f660a9cb 100644 --- a/lib/key.enum.ts +++ b/lib/key.enum.ts @@ -141,4 +141,13 @@ export enum Key { AudioForward, AudioRepeat, AudioRandom, + + LeftWin, + RightWin, + LeftCmd, + RightCmd, + + Menu, + + Fn, } From f008cde85fe12266c54e084a901e12ac154e9b8e Mon Sep 17 00:00:00 2001 From: Simon Hofmann <mail@simon-hofmann.org> Date: Thu, 2 Mar 2023 22:15:29 +0100 Subject: [PATCH 2/2] (#457) Added new keys to libnut keyboard mapping --- lib/provider/native/libnut-keyboard.class.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/provider/native/libnut-keyboard.class.ts b/lib/provider/native/libnut-keyboard.class.ts index cf6773f6..c354ec8e 100644 --- a/lib/provider/native/libnut-keyboard.class.ts +++ b/lib/provider/native/libnut-keyboard.class.ts @@ -83,8 +83,15 @@ export default class KeyboardAction implements KeyboardProviderInterface { [Key.Tab, "tab"], [Key.LeftAlt, "alt"], [Key.LeftControl, "control"], - [Key.RightAlt, "alt"], - [Key.RightControl, "control"], + [Key.RightAlt, "right_alt"], + [Key.RightControl, "right_control"], + [Key.LeftWin, "win"], + [Key.RightWin, "right_win"], + [Key.LeftCmd, "cmd"], + [Key.RightCmd, "right_cmd"], + + [Key.Menu, "menu"], + [Key.Fn, "fn"], [Key.LeftShift, "shift"], [Key.LeftSuper, "command"],