diff --git a/lib/ace/ext/show_keyboard_shortcuts.js b/lib/ace/ext/show_keyboard_shortcuts.js index 14e44f75..a15dbe41 100644 --- a/lib/ace/ext/show_keyboard_shortcuts.js +++ b/lib/ace/ext/show_keyboard_shortcuts.js @@ -53,6 +53,7 @@ define(function(require, exports, module) { "use strict"; + var Editor = require("ace/editor").Editor; /** * Generates a menu which displays the keyboard shortcuts. * @author @@ -78,4 +79,7 @@ define(function(require, exports, module) { overlayPage(editor, el, '0', '0', '0', null); } }; + Editor.prototype.showKeyboardShortcuts = function () { + module.exports.showKeyboardShortcuts(this); + }; }); \ No newline at end of file