ladybird/Userland
Andrew January cad62230f6 WindowServer: Close submenus when hovering over separators
ec6debb changed item_index_at to return -1 when hovering over a
separator. The intent was to not send the separator to clients for
MenuItemEntered.

However, this had the unintented consequence of not closing the submenu
when you hover over a separator. Submenus ignore when the item index is
-1 in order to leave the menu open when you move the mouse outside. This
ends up leaving the submenu open without the highlight to show what menu
item the submenu belongs to.

A slightly less severe consequence is that pressing the up or down arrow
key in such a situation would now go the top or bottom of the menu
rather than the item above or below the separator.

We now push the special casing of separators into set_hovered_index so
that the rest of the code behaves as it did before ec6debb.
2021-07-08 01:17:02 +02:00
..
Applets Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
Applications Userland: Keep ImageViewer window size the same while zooming in 2021-07-08 00:21:31 +02:00
Demos Fire: Make the main widget a GUI::Frame 2021-07-05 02:38:31 +02:00
DevTools LibJS: Remove the non-standard put helper and replace it's usages 2021-07-06 14:20:30 +01:00
DynamicLoader DynamicLoader: Don't use LibELF to do the initial relocations 2021-07-07 11:53:17 +02:00
Games GameOfLife: Properly switch between play and pause icon 2021-07-07 15:29:37 +01:00
Libraries LibJS: Implement RegExp.prototype [ @@search ] 2021-07-08 00:01:20 +01:00
Services WindowServer: Close submenus when hovering over separators 2021-07-08 01:17:02 +02:00
Shell Everywhere: Prefer using "..."sv over StringView { "..." } 2021-07-04 14:24:03 +02:00
Utilities WindowServer+wsctl: Add a simple utility for toggling "flash flush" 2021-07-07 22:56:46 +02:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00