From 72cf219b0505166b2fd222a36502e4dced9bfeef Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 8 Oct 2021 19:16:23 +0200 Subject: [PATCH] Added key repeat for the 'Jump to' and 'Sort games by' selectors on the game options menu. --- es-app/src/guis/GuiGamelistOptions.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/es-app/src/guis/GuiGamelistOptions.cpp b/es-app/src/guis/GuiGamelistOptions.cpp index 06b037619..49908df46 100644 --- a/es-app/src/guis/GuiGamelistOptions.cpp +++ b/es-app/src/guis/GuiGamelistOptions.cpp @@ -99,6 +99,10 @@ GuiGamelistOptions::GuiGamelistOptions(Window* window, SystemData* system) mJumpToLetterList = std::make_shared(mWindow, getHelpStyle(), "JUMP TO...", false); + // Enable key repeat so that the left or right button can be held to cycle through + // the letters. + mJumpToLetterList->setKeyRepeat(true); + // Populate the quick selector. for (unsigned int i = 0; i < mFirstLetterIndex.size(); i++) { mJumpToLetterList->add(mFirstLetterIndex[i], mFirstLetterIndex[i], 0); @@ -132,6 +136,11 @@ GuiGamelistOptions::GuiGamelistOptions(Window* window, SystemData* system) else mListSort->add(sort.description, &sort, false); } + + // Enable key repeat so that the left or right button can be held to cycle through + // the sort options. + mListSort->setKeyRepeat(true); + // Don't show the sort type option if the gamelist type is recent/last played. if (system->getName() != "recent") mMenu.addWithLabel("SORT GAMES BY", mListSort);