~aleteoryx/muditaos

a951f857532fb27f53b2a4a6cc9097b12a54eb14 — Przemyslaw Brudny 5 years ago 50d0cf0
[EGD-5688] Fixed specialInput selection blocking next action

Adding character by specialInput caused next input action
to be blocked.
3 files changed, 8 insertions(+), 0 deletions(-)

M module-apps/Application.cpp
M module-apps/Application.hpp
M module-apps/windows/AppWindow.cpp
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,