M module-apps/Application.cpp => module-apps/Application.cpp +5 -0
@@ 121,6 121,11 @@ namespace app
}
}
+ void Application::clearLongPressTimeout()
+ {
+ keyTranslator->prev_key_timedout = false;
+ }
+
void Application::render(gui::RefreshModes mode)
{
if (windowsStack.isEmpty()) {
M module-apps/Application.hpp => module-apps/Application.hpp +2 -0
@@ 183,6 183,8 @@ namespace app
public:
std::unique_ptr<sys::Timer> longPressTimer;
+ void clearLongPressTimeout();
+
Application(std::string name,
std::string parent = "",
StartInBackground startInBackground = {false},
M module-apps/windows/AppWindow.cpp => module-apps/windows/AppWindow.cpp +1 -0
@@ 219,6 219,7 @@ namespace gui
bool AppWindow::selectSpecialCharacter()
{
+ application->clearLongPressTimeout();
return app::manager::Controller::sendAction(
application,
app::manager::actions::ShowSpecialInput,