From a471af4ae1207ab02bc472e68c3229fc45b78918 Mon Sep 17 00:00:00 2001 From: Sreelakshmi Date: Sat, 12 Jun 2021 10:41:51 +0530 Subject: [PATCH] TextEditor: Don't close autocomplete box or stop timer on leave_event The autocomplete box closes on its own when the user tries to hover over it because text_editor consideres hovering over the box to be a leave_event. This commit stops that from happening. --- Userland/Libraries/LibGUI/TextEditor.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp index 3b2ca5277b..cd475d994c 100644 --- a/Userland/Libraries/LibGUI/TextEditor.cpp +++ b/Userland/Libraries/LibGUI/TextEditor.cpp @@ -1358,10 +1358,6 @@ void TextEditor::leave_event(Core::Event&) { if (m_in_drag_select) m_automatic_selection_scroll_timer->start(); - if (m_autocomplete_timer) - m_autocomplete_timer->stop(); - if (m_autocomplete_box) - m_autocomplete_box->close(); } void TextEditor::did_change()