From c8cc7b7947fabc939f918fe03910100e4738378b Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 10 Jun 2022 19:30:21 +0200 Subject: [PATCH] Fixed an issue where a virtual keyboard key repeat would sometimes continue to run when it shouldn't. --- es-core/src/guis/GuiTextEditKeyboardPopup.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/es-core/src/guis/GuiTextEditKeyboardPopup.cpp b/es-core/src/guis/GuiTextEditKeyboardPopup.cpp index 8c0f0edca..cb7f7cc41 100644 --- a/es-core/src/guis/GuiTextEditKeyboardPopup.cpp +++ b/es-core/src/guis/GuiTextEditKeyboardPopup.cpp @@ -470,6 +470,9 @@ bool GuiTextEditKeyboardPopup::input(InputConfig* config, Input input) void GuiTextEditKeyboardPopup::update(int deltaTime) { + if (mText->isEditing()) + mNavigationRepeatDirX = 0; + updateNavigationRepeat(deltaTime); updateDeleteRepeat(deltaTime); GuiComponent::update(deltaTime);