fix 'Erase' in Input dialog, now removes additional mappings for keys too

This commit is contained in:
thrust26 2019-05-25 18:03:21 +02:00
parent 28b22f57a5
commit 6b70b2dc9b
1 changed files with 4 additions and 1 deletions

View File

@ -68,8 +68,11 @@ void PhysicalKeyboardHandler::setDefaultMapping(Event::Type event, EventMode mod
auto setDefaultKey = [&](StellaKey key, Event::Type k_event, StellaMod mod = StellaMod::KBDM_NONE)
{
if(eraseAll || k_event == event)
if (eraseAll || k_event == event)
{
myKeyMap.eraseEvent(k_event, mode);
myKeyMap.add(k_event, mode, key, mod);
}
};
switch(mode)