6 Commits

Author SHA1 Message Date
Jonas Jenwald
1e2c571075 Shorten the Menu constructor a tiny bit
The fallback path used when the `menuItems` aren't provided/correct can be simplified, since the manual loop isn't necessary.
2026-08-04 12:41:46 +02:00
Jonas Jenwald
fc610d3e59 Add a go to first/last menu-item helper method in the Menu class
This fixes a bug when using the <kbd>Home</kbd> and <kbd>End</kbd> keyboard shortcuts to navigate through a `Menu` instance. These two buttons didn't update the `#lastIndex` field, which means that e.g. a following <kbd>ArrowDown</kbd> or <kbd>ArrowUp</kbd> press could make focus "jump" to an unexpected menu-item.

Also, the helper method reduces a little bit of code duplication in the event handlers.
2026-08-03 22:25:52 +02:00
Calixte Denizet
5290534c53
Correctly handle tab/page down when on a menu (bug 2016212) 2026-02-18 10:17:39 +01:00
Calixte Denizet
f4a2fd60db
Fix the keyboard accessibility of the manage button in the thumbnails view (bug 2015916) 2026-02-17 19:00:20 +01:00
Calixte Denizet
a4f4d460ca
Hide the menu container in changing it's visibility
This way, the dimensions of the menu container don't depend on its visibility.
This patch fixes few keyboard issues I noticed when reading:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/menu_role#keyboard_interactions
2026-01-20 14:42:57 +01:00
Calixte Denizet
4c6cc0a042
Add a menu class in order to be used in the new UI for the merge feature 2025-12-04 22:12:10 +01:00