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 4a4a039404
commit 8d6862062b

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()*/)