UNPKG

@blockly/keyboard-navigation

Version:
49 lines 1.39 kB
/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import * as Blockly from 'blockly/core'; /** * Class for handling the shortcuts dialog. */ export declare class ShortcutDialog { outputDiv: HTMLElement | null; modalContainer: HTMLElement | null; shortcutDialog: HTMLDialogElement | null; open: boolean; closeButton: HTMLElement | null; /** * Constructor for a dialog that displays available keyboard shortcuts. */ constructor(); getPlatform(): string; /** * Update the modifier key to the user's specific platform. */ updatePlatformName(): void; toggle(workspace: Blockly.WorkspaceSvg): void; toggleInternal(): void; /** * Munges a shortcut name into human readable text. * * @param shortcutName Shortcut name to convert. * @returns A title case version of the name. */ getReadableShortcutName(shortcutName: string): string; /** * List all currently registered shortcuts as a table. */ createModalContent(): void; private actionShortcutsToHTML; private actionShortcutToHTML; /** * Registers an action to list shortcuts with the shortcut registry. */ install(): void; /** * Unregisters the action to list shortcuts. */ uninstall(): void; } //# sourceMappingURL=shortcut_dialog.d.ts.map