Skip to content

Commit 722150e

Browse files
authored
adding support for Clear key on mac added in libnut fa2b880: nut-tree/libnut-core@fa2b880 (#520)
1 parent d01410f commit 722150e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/key.enum.ts

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export enum Key {
113113
Divide,
114114
Decimal,
115115
Enter,
116+
Clear,
116117

117118
NumPad0,
118119
NumPad1,

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

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export default class KeyboardAction implements KeyboardProviderInterface {
131131
[Key.Multiply, "multiply"],
132132
[Key.Divide, "divide"],
133133
[Key.Enter, "enter"],
134+
[Key.Clear, "clear"],
134135

135136
[Key.CapsLock, "caps_lock"],
136137
[Key.ScrollLock, "scroll_lock"],

0 commit comments

Comments
 (0)