@blockly/keyboard-navigation
Version:
A plugin for keyboard navigation.
35 lines • 938 B
TypeScript
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Action to delete the block the cursor is currently on.
*/
export declare class DeleteAction {
/**
* Saved context menu item display text function, which is restored
* when this action is uninstalled.
*/
private oldDisplayText;
/**
* Saved context menu item, which has its display text restored when
* this action is uninstalled.
*/
private oldContextMenuItem;
constructor();
/**
* Install this action as both a keyboard shortcut and a context menu item.
*/
install(): void;
/**
* Reinstall the original context menu display text if possible.
*/
uninstall(): void;
/**
* Updates the text of the context menu delete action to include
* the keyboard shortcut.
*/
private registerContextMenuAction;
}
//# sourceMappingURL=delete.d.ts.map