🚀 New Feature
- #1423 New
toolbar-navigationplugin: the toolbar is now reachable from the keyboard.Alt+F10moves the focus from the editable area into the toolbar, the arrow keys walk the buttons (wrapping at the ends, reversed in RTL),Home/Endjump to the ends,Enter/Spaceactivate a button andEscapegives the focus back to the editor; disabled buttons are skipped. This follows the WAI-ARIA authoring practices for arole="toolbar"widget, and the focus is moved programmatically, so it also works with the defaultallowTabNavigation: false, where the buttons take no part in the page tab order. On a button with a dropdown,ArrowDownopens it and focuses the first item,ArrowDown/ArrowUpwalk the items, andEscapeorArrowUpon the first item close it and return to the button. Reaching the toolbar is the regularfocusToolbarcommand, so it can be remapped like any other (commandToHotkeys: { focusToolbar: 'alt+0' }) or called withexecCommand. Requested by @cut2run.
🐛 Bug Fix
- A toolbar button focused from the keyboard right after a mouse click showed no highlight in Chrome: a modifier shortcut such as
Alt+F10does not switch the browser to keyboard modality, so:focus-visiblenever matched. Toolbar buttons are never focused by the mouse (mousedownis prevented to keep the selection), so they now highlight plain:focus.