Fixed first button in dialog without attached key being triggered by any unknown key

This commit is contained in:
2014-04-14 17:03:05 -04:00
parent 48f3335160
commit db98f6245e
2 changed files with 2 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ eKeyMod& operator -= (eKeyMod&lhs, eKeyMod rhs){
bool operator== (cKey a, cKey b){
if(a.spec != b.spec) return false;
if(a.mod != b.mod) return false;
return a.spec ? a.k == b.k : a.c == b.c;
return a.spec ? a.k == b.k : (a.c == 0 ? false : a.c == b.c);
}
bool mod_contains(eKeyMod mods, eKeyMod mod) {