mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03: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: https://github.com/SerenityOS/serenity/commit/3f35cd2f7d9 Pull-request: https://github.com/SerenityOS/serenity/pull/1005
@ -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…
Reference in New Issue
Block a user