From d531866663772bae9c8fa950bfb9cd73120dbac5 Mon Sep 17 00:00:00 2001 From: Matthew Kastor Date: Thu, 4 Apr 2013 20:12:38 -0400 Subject: [PATCH] augments Editor.prototype --- lib/ace/ext/show_keyboard_shortcuts.js | 4 ++++ 1 file changed, 4 insertions(+) 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