mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibGUI: Ignore the Enter event by default
If this is not ignored by default, then one can move the mouse fast enough to skip hovering over a parent element and hover directly over the child, causing the parent to never receive an Enter event.
This commit is contained in:
parent
cfc9ee6f16
commit
a5a32fbcce
1 changed files with 2 additions and 1 deletions
|
@ -523,8 +523,9 @@ void Widget::focusout_event(FocusEvent&)
|
|||
{
|
||||
}
|
||||
|
||||
void Widget::enter_event(Core::Event&)
|
||||
void Widget::enter_event(Core::Event& event)
|
||||
{
|
||||
event.ignore();
|
||||
}
|
||||
|
||||
void Widget::leave_event(Core::Event&)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue