@blockly/keyboard-navigation
Version:
A plugin for keyboard navigation.
44 lines • 1.24 kB
TypeScript
/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as Blockly from 'blockly/core';
/** Plugin for keyboard navigation. */
export declare class KeyboardNavigation {
/** The workspace. */
protected workspace: Blockly.WorkspaceSvg;
/** Keyboard navigation controller instance for the workspace. */
private navigationController;
/** Cursor for the main workspace. */
private cursor;
/**
* Focus ring in the workspace.
*/
private workspaceFocusRing;
/**
* Selection ring inside the workspace.
*/
private workspaceSelectionRing;
/**
* Used to restore monkey patch.
*/
private oldWorkspaceResize;
/**
* Constructs the keyboard navigation.
*
* @param workspace The workspace that the plugin will be added to.
*/
constructor(workspace: Blockly.WorkspaceSvg);
private resizeWorkspaceRings;
private resizeFocusRingInternal;
/**
* Disables keyboard navigation for this navigator's workspace.
*/
dispose(): void;
/**
* Toggle visibility of a help dialog for the keyboard shortcuts.
*/
toggleShortcutDialog(): void;
}
//# sourceMappingURL=index.d.ts.map