Skip to content

Commit 9eeda0d

Browse files
committed
(nut-tree/nut.js#490) Enable new modifier keys
1 parent c1a124c commit 9eeda0d

File tree

2 files changed

+598
-692
lines changed

2 files changed

+598
-692
lines changed

src/macos/keypress.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ void toggleKeyCode(MMKeyCode code, const bool down, MMKeyFlags flags) {
5555

5656
// Check if keycode is one of the available modifier keys and set keyflags
5757
// accordingly
58-
if (code == K_META) {
58+
if (code == K_META || code == K_RIGHTMETA) {
5959
flags |= MOD_META;
6060
}
61-
if (code == K_ALT) {
61+
if (code == K_ALT || code == K_RIGHTALT) {
6262
flags |= MOD_ALT;
6363
}
64-
if (code == K_CONTROL) {
64+
if (code == K_CONTROL || code == K_RIGHTCONTROL) {
6565
flags |= MOD_CONTROL;
6666
}
6767
if (code == K_SHIFT || code == K_RIGHTSHIFT) {

0 commit comments

Comments
 (0)