Files
blockly/core/interfaces/i_keyboard_accessible.ts
Beka Westberg ed531ec313 chore: remove all namespace comments (#6903)
* chore: remove all namespace comments

* chore: fix lint
2023-03-20 09:43:58 -07:00

23 lines
594 B
TypeScript

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as goog from '../../closure/goog/goog.js';
import {KeyboardShortcut} from '../shortcut_registry.js';
goog.declareModuleId('Blockly.IKeyboardAccessible');
/**
* 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;
}