mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
* chore: remove alias comments * chore: format * chore: remove extra newlines * chore: fix bad replaces
28 lines
708 B
TypeScript
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;
|
|
}
|