mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
WindowServer: Don't let super key open system menu while tracking input
Previously it was possible to open the system menu while tracking mouse input after a mousedown event.
This commit is contained in:
parent
82a945fa7e
commit
58823c474e
Notes:
sideshowbarker
2024-07-18 12:04:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/58823c474e0
1 changed files with 1 additions and 1 deletions
|
@ -1194,7 +1194,7 @@ void WindowManager::event(Core::Event& event)
|
|||
m_previous_event_was_super_keydown = true;
|
||||
} else if (m_previous_event_was_super_keydown) {
|
||||
m_previous_event_was_super_keydown = false;
|
||||
if (!m_dnd_client && key_event.type() == Event::KeyUp && key_event.key() == Key_Super) {
|
||||
if (!m_dnd_client && !m_active_input_tracking_window && key_event.type() == Event::KeyUp && key_event.key() == Key_Super) {
|
||||
tell_wms_super_key_pressed();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue