fixed missing control key support in LauncherDialog's filter

This commit is contained in:
Thomas Jentzsch 2021-09-03 21:43:05 +02:00
parent e11c4615e6
commit 06cbf95b3b
1 changed files with 5 additions and 1 deletions

View File

@ -643,8 +643,11 @@ void LauncherDialog::handleKeyDown(StellaKey key, StellaMod mod, bool repeated)
{ {
// Grab the key before passing it to the actual dialog and check for // Grab the key before passing it to the actual dialog and check for
// context menu keys // context menu keys
bool handled = false;
if(StellaModTest::isControl(mod)) if(StellaModTest::isControl(mod))
{ {
handled = true;
switch(key) switch(key)
{ {
case KBDK_P: case KBDK_P:
@ -661,10 +664,11 @@ void LauncherDialog::handleKeyDown(StellaKey key, StellaMod mod, bool repeated)
break; break;
default: default:
handled = false;
break; break;
} }
} }
else if(!handled)
#if defined(RETRON77) #if defined(RETRON77)
// handle keys used by R77 // handle keys used by R77
switch(key) switch(key)