update check key flags support "cmd" and "ctrl"

This commit is contained in:
vcaesar 2018-12-16 12:25:30 -04:00
parent 8d9f64034f
commit 0c14363eeb

View File

@ -161,10 +161,10 @@ int CheckKeyFlags(char* f, MMKeyFlags* flags){
if ( strcmp(f, "alt") == 0 ) {
*flags = MOD_ALT;
}
else if(strcmp(f, "command") == 0) {
else if( strcmp(f, "command") == 0 || strcmp(f, "cmd") == 0 ) {
*flags = MOD_META;
}
else if(strcmp(f, "control") == 0) {
else if( strcmp(f, "control") == 0 || strcmp(f, "ctrl") == 0 ) {
*flags = MOD_CONTROL;
}
else if( strcmp(f, "shift") == 0 ) {