From e306b09232d213fe37ea1c57883e60f71d64a429 Mon Sep 17 00:00:00 2001 From: Matthew Kastor Date: Thu, 4 Apr 2013 22:07:51 -0400 Subject: [PATCH] adds modelist demo --- demo/mode_list.html | 57 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 demo/mode_list.html diff --git a/demo/mode_list.html b/demo/mode_list.html new file mode 100644 index 00000000..9aa3f295 --- /dev/null +++ b/demo/mode_list.html @@ -0,0 +1,57 @@ + + + + + + Editor + + + + +
Editor.prototype.showKeyboardShortcuts = function () {
+    showKeyboardShortcuts(this);
+};
+editor.commands.addCommands([{
+    name: "showKeyboardShortcuts",
+    bindKey: {win: "Ctrl-Alt-h", mac: "Command-Alt-h"},
+    exec: function(editor, line) {
+        editor.showKeyboardShortcuts();
+    }
+}]);
+
+ + + + + + +