From 9f3b00d28bc01bea2c3a0d14bddfb83c2673b192 Mon Sep 17 00:00:00 2001 From: flb Date: Sat, 6 May 2023 01:54:01 +0200 Subject: [PATCH] increase max string length for on-screen keyboard (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/250) --- source/ams_tab.cpp | 4 ++-- source/tools_tab.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ams_tab.cpp b/source/ams_tab.cpp index 558baee..5828c1b 100644 --- a/source/ams_tab.cpp +++ b/source/ams_tab.cpp @@ -258,8 +258,8 @@ void AmsTab_Custom::AddLinkCreator() listItem->setHeight(LISTITEM_HEIGHT); listItem->getClickEvent()->subscribe([this, category](brls::View* view) { std::string title, link; - brls::Swkbd::openForText([&title](std::string text) { title = text; }, "Enter title", "", 64, "", 0, "Submit", "Title"); - brls::Swkbd::openForText([&link](std::string text) { link = text; }, "Enter direct link", "", 64, "", 0, "Submit", "https://site/download.zip"); + brls::Swkbd::openForText([&title](std::string text) { title = text; }, "Enter title", "", 256, "", 0, "Submit", "Title"); + brls::Swkbd::openForText([&link](std::string text) { link = text; }, "Enter direct link", "", 256, "", 0, "Submit", "https://site/download.zip"); auto links = util::getValueFromKey(this->custom_packs, category); links[title] = link; this->custom_packs[category] = links; diff --git a/source/tools_tab.cpp b/source/tools_tab.cpp index 481c058..8d30de9 100644 --- a/source/tools_tab.cpp +++ b/source/tools_tab.cpp @@ -86,7 +86,7 @@ ToolsTab::ToolsTab(const std::string& tag, const nlohmann::ordered_json& payload brls::ListItem* browser = new brls::ListItem("menus/tools/browser"_i18n); browser->getClickEvent()->subscribe([](brls::View* view) { std::string url; - if (brls::Swkbd::openForText([&url](std::string text) { url = text; }, "cheatslips.com e-mail", "", 64, "https://duckduckgo.com", 0, "Submit", "https://website.tld")) { + if (brls::Swkbd::openForText([&url](std::string text) { url = text; }, "cheatslips.com e-mail", "", 256, "https://duckduckgo.com", 0, "Submit", "https://website.tld")) { std::string error = ""; int at = appletGetAppletType(); if (at == AppletType_Application) { // Running as a title