From 06cbf95b3b8fd69a1b0a3e0bc9b6ca26e9d78258 Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Fri, 3 Sep 2021 21:43:05 +0200 Subject: [PATCH] fixed missing control key support in LauncherDialog's filter --- src/gui/LauncherDialog.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/LauncherDialog.cxx b/src/gui/LauncherDialog.cxx index 0753c7a5c..051f70eb8 100644 --- a/src/gui/LauncherDialog.cxx +++ b/src/gui/LauncherDialog.cxx @@ -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 // context menu keys + bool handled = false; + if(StellaModTest::isControl(mod)) { + handled = true; switch(key) { case KBDK_P: @@ -661,10 +664,11 @@ void LauncherDialog::handleKeyDown(StellaKey key, StellaMod mod, bool repeated) break; default: + handled = false; break; } } - else + if(!handled) #if defined(RETRON77) // handle keys used by R77 switch(key)