discourse/app/assets/javascripts/float-kit/addon
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
..
components A11Y: fix toolbar keyboard navigation with d-menu items (#34615) 2025-09-19 14:57:54 -04:00
lib UX: overhaul of GroupSelector with Floatkit (#34685) 2025-09-18 15:33:52 +08:00
modifiers DEV: allows to disable ancestorScroll on float-kit (#33251) 2025-06-18 18:16:20 +02:00
services FEATURE: rich editor image toolbar for scale/alt text/delete (#33381) 2025-07-07 11:48:54 -03:00