mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
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.
This commit is contained in:
parent
6fb08f20e3
commit
a471af4ae1
Notes:
sideshowbarker
2024-07-18 12:20:10 +09:00
Author: https://github.com/swsrkty 🔰
Commit: a471af4ae1
Pull-request: https://github.com/SerenityOS/serenity/pull/7992
Issue: https://github.com/SerenityOS/serenity/issues/7165
Reviewed-by: https://github.com/alimpfard
1 changed files with 0 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue