From a951f857532fb27f53b2a4a6cc9097b12a54eb14 Mon Sep 17 00:00:00 2001 From: Przemyslaw Brudny Date: Wed, 10 Feb 2021 11:48:57 +0100 Subject: [PATCH] [EGD-5688] Fixed specialInput selection blocking next action Adding character by specialInput caused next input action to be blocked. --- module-apps/Application.cpp | 5 +++++ module-apps/Application.hpp | 2 ++ module-apps/windows/AppWindow.cpp | 1 + 3 files changed, 8 insertions(+) diff --git a/module-apps/Application.cpp b/module-apps/Application.cpp index cfbbd07a65c809b686f9e823bfaf935a947147b4..2002c9129cbcae71aec4e3ca7f0b8773ff185e1f 100644 --- a/module-apps/Application.cpp +++ b/module-apps/Application.cpp @@ -121,6 +121,11 @@ namespace app } } + void Application::clearLongPressTimeout() + { + keyTranslator->prev_key_timedout = false; + } + void Application::render(gui::RefreshModes mode) { if (windowsStack.isEmpty()) { diff --git a/module-apps/Application.hpp b/module-apps/Application.hpp index 8ad83dd28d2236f8cbafdff5dff10f07ec5d3026..69794e80a0b56745d5ac02ad183a3bbc2a018dc5 100644 --- a/module-apps/Application.hpp +++ b/module-apps/Application.hpp @@ -183,6 +183,8 @@ namespace app public: std::unique_ptr longPressTimer; + void clearLongPressTimeout(); + Application(std::string name, std::string parent = "", StartInBackground startInBackground = {false}, diff --git a/module-apps/windows/AppWindow.cpp b/module-apps/windows/AppWindow.cpp index 286b03af009ce6beda112240c3c84122ef1ccbd4..6b358b4b7fc3b760d57f4e84386e761b78c3cbc0 100644 --- a/module-apps/windows/AppWindow.cpp +++ b/module-apps/windows/AppWindow.cpp @@ -219,6 +219,7 @@ namespace gui bool AppWindow::selectSpecialCharacter() { + application->clearLongPressTimeout(); return app::manager::Controller::sendAction( application, app::manager::actions::ShowSpecialInput,