Skip to content

Commit

Permalink
(NT-133) Allow meta and right_meta as modifier keys
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed May 31, 2024
1 parent ee143df commit 2c1e9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,10 @@ int CheckKeyFlags(std::string &flagString, MMKeyFlags *flags) {
if (flagString == "alt" || flagString == "right_alt") {
*flags = MOD_ALT;
#if defined(IS_MACOSX)
} else if (flagString == "command" || flagString == "cmd" || flagString == "right_cmd") {
} else if (flagString == "meta" || flagString == "right_meta" || flagString == "cmd" || flagString == "right_cmd") {
*flags = MOD_META;
#else
} else if (flagString == "command" || flagString == "win" || flagString == "right_win") {
} else if (flagString == "meta" || flagString == "right_meta" || flagString == "win" || flagString == "right_win") {
*flags = MOD_META;
#endif
} else if (flagString == "control" || flagString == "right_control") {
Expand Down

0 comments on commit 2c1e9d4

Please sign in to comment.