Files
blockly/core/interfaces/i_keyboard_accessible.ts
Rachel Fenichel 1d1a927628 chore: remove alias comments (#6816)
* chore: remove alias comments

* chore: format

* chore: remove extra newlines

* chore: fix bad replaces
2023-02-06 10:08:55 -08:00

28 lines
708 B
TypeScript

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* The interface for objects that handle keyboard shortcuts.
*
* @namespace Blockly.IKeyboardAccessible
*/
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;
}