1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

KeyPressMappingSet fix.

This commit is contained in:
jules 2012-11-23 17:37:30 +00:00
parent 82b9a6d6e5
commit c21025fc36

View file

@ -241,8 +241,9 @@ bool KeyPressMappingSet::restoreFromXml (const XmlElement& xmlVersion)
}
else if (map->hasTagName ("UNMAPPING"))
{
if (containsMapping (commandId, key))
removeKeyPress (key);
for (int i = mappings.size(); --i >= 0;)
if (mappings.getUnchecked(i)->commandID == commandId)
mappings.getUnchecked(i)->keypresses.removeAllInstancesOf (key);
}
}
}