discourse/app/assets/javascripts/float-kit/addon/components
Kris 185ced442a
A11Y: fix toolbar keyboard navigation with d-menu items (#34615)
When navigating the composer toolbar with arrow keys, you get stuck once
you hit the headings button and arrow keys cease to work in either
left/right direction. You get stuck here:

<img width="595" height="58" alt="image"
src="https://github.com/user-attachments/assets/cebc00a5-c629-488a-8716-6a9100e7b1b1"
/>

The issue was that DMenu captures keyboard commands looking for a `tab`
and ignoring all other keys and this was breaking the parent handler
watching for arrow keys. This will now pass other keys beyond tab back
to the parent, so we can nav beyond headings in the toolbar.

<img width="630" height="62" alt="image"
src="https://github.com/user-attachments/assets/88d96979-0651-4744-8dd7-d2f2d8abe53b"
/>

I've added a test to check for this "stuck" state in the future.
2025-09-19 14:57:54 -04:00
..
d-button-tooltip.gjs DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
d-default-toast.gjs UX: Remove Ctrl+F search shortcut (#32281) 2025-04-15 15:14:54 +10:00
d-float-body.gjs DEV: [gjs-codemod] convert first batch of files to gjs 2025-03-12 08:54:04 +00:00
d-float-portal.gjs DEV: Move discourse-common/config/environment to discourse/lib (#30738) 2025-01-13 15:29:26 +00:00
d-headless-menu.gjs DEV: allows for multiple menus/tooltips (#26823) 2024-05-07 23:48:44 +02:00
d-headless-tooltip.gjs DEV: allows for multiple menus/tooltips (#26823) 2024-05-07 23:48:44 +02:00
d-inline-float.gjs Revert "FIX: improves text selection of posts (#33143)" (#33190) 2025-06-13 01:10:25 +02:00
d-menu.gjs A11Y: fix toolbar keyboard navigation with d-menu items (#34615) 2025-09-19 14:57:54 -04:00
d-menus.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
d-popover.gjs DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
d-toast.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
d-toasts.gjs FEATURE: add progress bar to toast notifications (#26483) 2024-04-05 18:29:11 +08:00
d-tooltip.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
d-tooltips.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00