mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
WSWindowServer: Only close menubar on a mouse down
This allows you to click on the menu, then use the menu keys to browse the menu. Beforehand, you would click the window, release the button, and the menu would close :(
This commit is contained in:
parent
7fb7b399a3
commit
3f35cd2f7d
Notes:
sideshowbarker
2024-07-19 10:16:23 +09:00
Author: https://github.com/shannonbooth
Commit: 3f35cd2f7d
Pull-request: https://github.com/SerenityOS/serenity/pull/1005
1 changed files with 5 additions and 2 deletions
|
@ -733,8 +733,11 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event, WSWindow*& hovere
|
|||
return;
|
||||
}
|
||||
}
|
||||
m_menu_manager.close_bar();
|
||||
topmost_menu->set_window_menu_open(false);
|
||||
|
||||
if (event.type() == WSEvent::MouseDown) {
|
||||
m_menu_manager.close_bar();
|
||||
topmost_menu->set_window_menu_open(false);
|
||||
}
|
||||
}
|
||||
|
||||
if (event.type() == WSEvent::MouseMove) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue