@blockly/keyboard-navigation
Version:
A plugin for keyboard navigation.
44 lines • 1.23 kB
TypeScript
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { Navigation } from '../navigation';
/**
* Keyboard shortcut to show the action menu on Cmd/Ctrl/Alt+Enter key.
*/
export declare class ActionMenu {
private navigation;
/**
* Registration name for the keyboard shortcut.
*/
private shortcutName;
constructor(navigation: Navigation);
/**
* Install this action.
*/
install(): void;
/**
* Uninstall this action.
*/
uninstall(): void;
/**
* Create and register the keyboard shortcut for this action.
*/
private registerShortcut;
/**
* Show the action menu for the current node.
*
* The action menu will contain entries for relevant actions for the
* node's location. If the location is a block, this will include
* the contents of the block's context menu (if any).
*
* Returns true if it is possible to open the action menu in the
* current location, even if the menu was not opened due there being
* no applicable menu items.
*
* @param workspace The workspace.
*/
private openActionMenu;
}
//# sourceMappingURL=action_menu.d.ts.map