Update StarInput.cpp
This commit is contained in:
parent
3fc7a85a52
commit
fe3763ed33
@ -30,7 +30,7 @@ KeyMod keyModsFromJson(Json const& json, uint8_t* priority = nullptr) {
|
|||||||
return mod;
|
return mod;
|
||||||
|
|
||||||
for (Json const& jMod : json.toArray()) {
|
for (Json const& jMod : json.toArray()) {
|
||||||
if (priority && mod != (mod |= KeyModNames.getLeft(jMod.toString())))
|
if (mod != (mod |= KeyModNames.getLeft(jMod.toString())) && priority)
|
||||||
++*priority;
|
++*priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user