diff --git a/Userland/Libraries/LibGUI/ComboBox.cpp b/Userland/Libraries/LibGUI/ComboBox.cpp index 7895b108ff..58615c6948 100644 --- a/Userland/Libraries/LibGUI/ComboBox.cpp +++ b/Userland/Libraries/LibGUI/ComboBox.cpp @@ -39,6 +39,7 @@ private: set_focus(true); if (on_mousewheel) on_mousewheel(event.wheel_delta_y()); + event.accept(); } virtual void keydown_event(KeyEvent& event) override diff --git a/Userland/Libraries/LibGUI/SpinBox.cpp b/Userland/Libraries/LibGUI/SpinBox.cpp index a2acc9ffc1..3ce4d3695f 100644 --- a/Userland/Libraries/LibGUI/SpinBox.cpp +++ b/Userland/Libraries/LibGUI/SpinBox.cpp @@ -108,6 +108,7 @@ void SpinBox::mousewheel_event(MouseEvent& event) if (event.modifiers() == KeyModifier::Mod_Ctrl) wheel_delta *= 6; set_value(m_value - wheel_delta); + event.accept(); } void SpinBox::resize_event(ResizeEvent& event)