Allow setting CMD as shortcut key

This commit is contained in:
Marijn van der Werf committed 2016-01-12 22:29:36 +01:00
1 parent d8d706cc58
commit 72739e8cd8
4 files changed
+16

No files matched your search

+4
View File
@@ -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));
}