Files
blockly/core/interfaces/i_keyboard_accessible.ts
Christopher Allen ce22f42868 chore: Organise imports (#8527)
* chore(deps): Add pretter-plugin-organize-imports

* chore: Remove insignificant blank lines in import sections

  Since prettier-plugin-organize-imports sorts imports within
  sections separated by blank lines, but preserves the section
  divisions, remove any blank lines that are not dividing imports
  into meaningful sections.

  Do not remove blank lines separating side-effect-only imports
  from main imports.

* chore: Remove unneded eslint-disable directives

* chore: Organise imports
2024-08-15 03:16:14 +01:00

23 lines
544 B
TypeScript

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
// Former goog.module ID: Blockly.IKeyboardAccessible
import {KeyboardShortcut} from '../shortcut_registry.js';
/**
* An interface for an object that handles keyboard shortcuts.
*/
export interface IKeyboardAccessible {
/**
* Handles the given keyboard shortcut.
*
* @param shortcut The shortcut to be handled.
* @returns True if the shortcut has been handled, false otherwise.
*/
onShortcut(shortcut: KeyboardShortcut): boolean;
}