mirror of https://github.com/stella-emu/stella.git
fix 'Erase' in Input dialog, now removes additional mappings for keys too
This commit is contained in:
parent
28b22f57a5
commit
6b70b2dc9b
|
@ -69,7 +69,10 @@ 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)
|
||||
{
|
||||
myKeyMap.eraseEvent(k_event, mode);
|
||||
myKeyMap.add(k_event, mode, key, mod);
|
||||
}
|
||||
};
|
||||
|
||||
switch(mode)
|
||||
|
|
Loading…
Reference in New Issue