From bff34729a74ec2d1470527ee28c14de1186a7d52 Mon Sep 17 00:00:00 2001 From: Justin <52604018+hiimjustin000@users.noreply.github.com> Date: Thu, 5 Sep 2024 07:05:08 -0400 Subject: [PATCH] allow dashes in developer name search (#1023) * Update FiltersPopup.cpp * remove space --- loader/src/ui/mods/popups/FiltersPopup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/src/ui/mods/popups/FiltersPopup.cpp b/loader/src/ui/mods/popups/FiltersPopup.cpp index bd4ebe4c3..aa4c75253 100644 --- a/loader/src/ui/mods/popups/FiltersPopup.cpp +++ b/loader/src/ui/mods/popups/FiltersPopup.cpp @@ -103,6 +103,7 @@ bool FiltersPopup::setup(ModListSource* src) { m_developerNameInput = TextInput::create(inputContainer->getContentWidth(), "Developer Name"); m_developerNameInput->setTextAlign(TextInputAlign::Left); + m_developerNameInput->setFilter("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-"); m_developerNameInput->setString(src->getQuery().developer.value_or("")); inputContainer->addChildAtPosition(m_developerNameInput, Anchor::Center);