Fixed an issue where a virtual keyboard key repeat would sometimes continue to run when it shouldn't.

This commit is contained in:
Leon Styhre 2022-06-10 19:30:21 +02:00
parent cfc9d54068
commit c8cc7b7947

View file

@ -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);