From 1518a460ae8aa1414e6309e04be32d69fd4c4f66 Mon Sep 17 00:00:00 2001 From: Matthew Kastor Date: Mon, 1 Apr 2013 15:38:43 -0400 Subject: [PATCH] adds description to kb & settings menu methods --- lib/ace/editor.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 8e9307f5..87c51790 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -120,6 +120,7 @@ var Editor = function(renderer, session) { } }; + /** * Returns the keyboard handler, such as "vim" or "windows". * @@ -170,6 +171,7 @@ var Editor = function(renderer, session) { selection.removeEventListener("changeSelection", this.$onSelectionChange); } + this.session = session; this.$onDocumentChange = this.onDocumentChange.bind(this); @@ -2190,10 +2192,17 @@ var Editor = function(renderer, session) { }; }; + /** + * Displays a menu for changing settings. + */ this.showSettingsMenu = function () { showSettingsMenu(this); }; + /** + * Displays a menu showing all keyboard shortcuts applicable to the current + * platform. + */ this.showKeyboardShortcuts = function () { showKeyboardShortcuts(this); };