added a tweak which allows searching for ROM names containing a space without starting the ROMs

This commit is contained in:
thrust26 2023-08-04 15:14:27 +02:00
parent 3714f634da
commit d8636f764b
1 changed files with 3 additions and 0 deletions

View File

@ -353,6 +353,8 @@ bool FileListWidget::handleKeyDown(StellaKey key, StellaMod mod)
_lastKey = key; _lastMod = mod;
if(_quickSelectTime < TimerManager::getTicks() / 1000)
_firstMod = mod;
else if(key == KBDK_SPACE) // allow seaching strings with a space without selecting/starting
handled = true;
return handled;
}
@ -429,6 +431,7 @@ void FileListWidget::handleCommand(CommandSender* sender, int cmd, int data, int
break;
case ListWidget::kActivatedCmd:
[[fallthrough]];
case ListWidget::kDoubleClickedCmd:
_selected = data;
if(isDirectory(selected())/* || !selected().exists()*/)