forked from rosebudai/OpenRCT2-Web
Allow setting CMD as shortcut key
This commit is contained in:
1 parent
d8d706cc58
commit
72739e8cd8
4 files changed
+16
No files matched your search
@@ -100,6 +100,10 @@ void keyboard_shortcut_format_string(char *buffer, uint16 shortcutKey)
|
||||
format_string(formatBuffer, STR_ALT_PLUS, NULL);
|
||||
strcat(buffer, formatBuffer);
|
||||
}
|
||||
if (shortcutKey & 0x800) {
|
||||
format_string(formatBuffer, STR_CMD_PLUS, NULL);
|
||||
strcat(buffer, formatBuffer);
|
||||
}
|
||||
strcat(buffer, SDL_GetScancodeName(shortcutKey & 0xFF));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user