summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/applets/software_keyboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/frontend/applets/software_keyboard.cpp')
-rw-r--r--src/core/frontend/applets/software_keyboard.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/frontend/applets/software_keyboard.cpp b/src/core/frontend/applets/software_keyboard.cpp
index 2445a980d..4105101b3 100644
--- a/src/core/frontend/applets/software_keyboard.cpp
+++ b/src/core/frontend/applets/software_keyboard.cpp
@@ -9,12 +9,13 @@
namespace Core::Frontend {
SoftwareKeyboardApplet::~SoftwareKeyboardApplet() = default;
-std::optional<std::u16string> DefaultSoftwareKeyboardApplet::GetText(
+void DefaultSoftwareKeyboardApplet::RequestText(
+ std::function<void(std::optional<std::u16string>)> out,
SoftwareKeyboardParameters parameters) const {
if (parameters.initial_text.empty())
- return u"yuzu";
+ out(u"yuzu");
- return parameters.initial_text;
+ out(parameters.initial_text);
}
void DefaultSoftwareKeyboardApplet::SendTextCheckDialog(std::u16string error_message) const {