Migrate core/interfaces/i_keyboard_accessible.js to goog.module

This commit is contained in:
kozbial
2021-07-16 12:32:12 -07:00
committed by Monica Kozbial
parent 04ef2705d1
commit 3d174ae058
2 changed files with 7 additions and 4 deletions

View File

@@ -11,7 +11,8 @@
'use strict';
goog.provide('Blockly.IKeyboardAccessible');
goog.module('Blockly.IKeyboardAccessible');
goog.module.declareLegacyNamespace();
goog.requireType('Blockly.ShortcutRegistry');
@@ -20,11 +21,13 @@ goog.requireType('Blockly.ShortcutRegistry');
* An interface for an object that handles keyboard shortcuts.
* @interface
*/
Blockly.IKeyboardAccessible = function() {};
const IKeyboardAccessible = function() {};
/**
* Handles the given keyboard shortcut.
* @param {!Blockly.ShortcutRegistry.KeyboardShortcut} shortcut The shortcut to be handled.
* @return {boolean} True if the shortcut has been handled, false otherwise.
*/
Blockly.IKeyboardAccessible.prototype.onShortcut;
IKeyboardAccessible.prototype.onShortcut;
exports = IKeyboardAccessible;