From d8ff4e70c83295ec66ade49f7837d95fdf987641 Mon Sep 17 00:00:00 2001 From: Kyle Smith Date: Sun, 9 Feb 2025 10:12:06 -0800 Subject: [PATCH 1/2] adds support for pressing the meta key --- providers/libnut/lib/libnut-keyboard.class.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/providers/libnut/lib/libnut-keyboard.class.ts b/providers/libnut/lib/libnut-keyboard.class.ts index b396f6c5..237dd359 100644 --- a/providers/libnut/lib/libnut-keyboard.class.ts +++ b/providers/libnut/lib/libnut-keyboard.class.ts @@ -89,6 +89,8 @@ export default class KeyboardAction implements KeyboardProviderInterface { [Key.RightWin, "right_win"], [Key.LeftCmd, "cmd"], [Key.RightCmd, "right_cmd"], + [Key.LeftMeta, "meta"], + [Key.RightMeta, "right_meta"], [Key.Menu, "menu"], [Key.Fn, "fn"], From e7007edd77f6a5d0438b493b0379d6e5559a3f59 Mon Sep 17 00:00:00 2001 From: Kyle Smith Date: Mon, 10 Feb 2025 13:17:30 -0800 Subject: [PATCH 2/2] Switching Super keys to map to "meta" --- providers/libnut/lib/libnut-keyboard.class.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/providers/libnut/lib/libnut-keyboard.class.ts b/providers/libnut/lib/libnut-keyboard.class.ts index 237dd359..fb274cb9 100644 --- a/providers/libnut/lib/libnut-keyboard.class.ts +++ b/providers/libnut/lib/libnut-keyboard.class.ts @@ -89,16 +89,16 @@ export default class KeyboardAction implements KeyboardProviderInterface { [Key.RightWin, "right_win"], [Key.LeftCmd, "cmd"], [Key.RightCmd, "right_cmd"], - [Key.LeftMeta, "meta"], - [Key.RightMeta, "right_meta"], [Key.Menu, "menu"], [Key.Fn, "fn"], [Key.LeftShift, "shift"], - [Key.LeftSuper, "command"], + [Key.LeftSuper, "meta"], + [Key.LeftMeta, "meta"], [Key.RightShift, "right_shift"], - [Key.RightSuper, "command"], + [Key.RightSuper, "right_meta"], + [Key.RightMeta, "right_meta"], [Key.Grave, "`"], [Key.Minus, "-"],