mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
* 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
23 lines
544 B
TypeScript
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;
|
|
}
|