/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net */ /** * [[include:plugins/toolbar-navigation/README.md]] * @packageDocumentation * @module plugins/toolbar-navigation */ import type { IJodit } from "../../types/index"; import { Plugin } from "../../core/plugin/index"; /** * Makes the toolbar reachable from the keyboard, as described by the WAI-ARIA * authoring practices for a `role="toolbar"` widget. * * The focus is moved programmatically, so this works whatever * {@link Config.allowTabNavigation} does with the tab order — including the * default, where the buttons take no part in the page tab order. */ export declare class toolbarNavigation extends Plugin { /** @override */ protected afterInit(jodit: IJodit): void; /** @override */ protected beforeDestruct(): void; /** * Moves the focus to the first button of the toolbar. * * Bound to `Alt+F10` by default; remap it like any other command: * `commandToHotkeys: { focusToolbar: 'alt+0' }` */ focusToolbar(): false; /** * Arrow keys / `Home` / `End` walk the buttons, `Escape` leaves the toolbar */ protected onKeyDown(e: KeyboardEvent): boolean | void; /** * Toolbar buttons that can take the focus right now */ private __buttons; private __isRtl; }