1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added assertion to KeyPressMappingSet to catch attempts to connect keys to non-existent command ID.

This commit is contained in:
jules 2013-09-16 13:49:57 +01:00
parent 09d20dcae8
commit 6ff34a841f

View file

@ -81,6 +81,12 @@ void KeyPressMappingSet::addKeyPress (const CommandID commandID, const KeyPress&
mappings.add (cm);
sendChangeMessage();
}
else
{
// If you hit this, you're trying to attach a keypress to a command ID that
// doesn't exist, so the key is not being attached.
jassertfalse;
}
}
}
}