Merge pull request #37443 from Leleat/master

Fix PopupMenu's letter jumping on any InputEventKey (instead of just a press)
This commit is contained in:
Rémi Verschelde 2020-04-01 16:51:10 +02:00 committed by GitHub
commit 2e84b7b916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ void PopupMenu::_gui_input(const Ref<InputEvent> &p_event) {
Ref<InputEventKey> 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;