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:
parent
82b9a6d6e5
commit
c21025fc36
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue