mirror of
https://github.com/moodle/moodle.git
synced 2025-04-03 07:22:39 +02:00
Updated ARIA handling code to not assume the presence of a .dropdown element. - Modified keypress event listener to match `[role="menu"] [role="menuitem"]` directly. - Changed keyboard navigation handling to avoid assuming `.dropdown`. - Updated focus trapping to use `.dropdown-menu[role="dialog"]` selector ensuring compatibility with `.dropup` and other variations. - Ensured focus untrapping logic uses the same improved selector.