Skip to content

Commit 4c37377

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents c91ad7c + 6daf48e commit 4c37377

File tree

6 files changed

+570
-366
lines changed

6 files changed

+570
-366
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 3.1.0
6+
7+
- Enhancement: Typo fix [(PR #477)](https://github.com/nut-tree/nut.js/pull/472)
8+
- Enhancement: Additional keys [(#457)](https://github.com/nut-tree/nut.js/issues/457)
9+
510
## 3.0.0
611

712
- Enhancement: Improve types of Jest matchers [(#466)](https://github.com/nut-tree/nut.js/issues/466)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Please consult the project website at [nutjs.dev](https://nutjs.dev/docs/tutoria
5252

5353
# Examples
5454

55-
[nut-tree/trailmix](https://github.com/nut-tree/trailmix) contains a set of ready to use examples which demo the usage ot nut.js.
55+
[nut-tree/trailmix](https://github.com/nut-tree/trailmix) contains a set of ready to use examples which demo the usage of nut.js.
5656

5757
# API Docs
5858

lib/key.enum.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,13 @@ export enum Key {
141141
AudioForward,
142142
AudioRepeat,
143143
AudioRandom,
144+
145+
LeftWin,
146+
RightWin,
147+
LeftCmd,
148+
RightCmd,
149+
150+
Menu,
151+
152+
Fn,
144153
}

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

Lines changed: 9 additions & 2 deletions
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)