Skip to content

Xbox Cloud Gaming app for PS5 Homebrew

C

fix(ui): keep searchOnKeys_ check in wantsTextInput and typeText for Enter transition

Rafael Abud Ferreira925aa261ed49
diff --git a/src/ui/app_ui_search.cpp b/src/ui/app_ui_search.cpp
index 83a0fd2..0f22472 100644
--- a/src/ui/app_ui_search.cpp
+++ b/src/ui/app_ui_search.cpp
@@ -439,12 +439,12 @@ void AppUi::pressFilter(Filter f) {
bool AppUi::wantsTextInput() const {
std::lock_guard<std::mutex> lock(mutex_);
- return screen_ == Screen::Home && searching_ && filterList_ < 0;
+ return screen_ == Screen::Home && searching_ && searchOnKeys_ && filterList_ < 0 && keyRow_ <= kKeyRows;
}
void AppUi::typeText(std::string_view utf8) {
std::lock_guard<std::mutex> lock(mutex_);
- if (!(screen_ == Screen::Home && searching_ && filterList_ < 0)) return;
+ if (!(screen_ == Screen::Home && searching_ && searchOnKeys_)) return;
bool edited = false;
for (char ch : utf8) {
if (ch == '\b') {