From 8a5660f3d1e51abd691dc33240d10b082abe578a Mon Sep 17 00:00:00 2001 From: Leleat Date: Mon, 30 Mar 2020 21:45:56 +0200 Subject: [PATCH] fixed PopupMenus letterjumping on any InputEvent --- scene/gui/popup_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index c096dc94cb9..7ed2bbe53b0 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -394,7 +394,7 @@ void PopupMenu::_gui_input(const Ref &p_event) { Ref k = p_event; - if (allow_search && k.is_valid() && k->get_unicode()) { + if (allow_search && k.is_valid() && k->get_unicode() && k->is_pressed()) { uint64_t now = OS::get_singleton()->get_ticks_msec(); uint64_t diff = now - search_time_msec;