Skip to content

Commit

Permalink
(nut-tree/nut.js#490) Enable new modifier keys (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann authored Jun 5, 2023
1 parent c1a124c commit 20ae394
Show file tree
Hide file tree
Showing 2 changed files with 598 additions and 692 deletions.
6 changes: 3 additions & 3 deletions src/macos/keypress.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ void toggleKeyCode(MMKeyCode code, const bool down, MMKeyFlags flags) {

// Check if keycode is one of the available modifier keys and set keyflags
// accordingly
if (code == K_META) {
if (code == K_META || code == K_RIGHTMETA) {
flags |= MOD_META;
}
if (code == K_ALT) {
if (code == K_ALT || code == K_RIGHTALT) {
flags |= MOD_ALT;
}
if (code == K_CONTROL) {
if (code == K_CONTROL || code == K_RIGHTCONTROL) {
flags |= MOD_CONTROL;
}
if (code == K_SHIFT || code == K_RIGHTSHIFT) {
Expand Down
Loading

0 comments on commit 20ae394

Please sign in to comment.