add simple keyboard macros

This commit is contained in:
nightwing 2011-11-19 21:52:13 +04:00
commit 0ba3333971
2 changed files with 40 additions and 0 deletions

View file

@ -252,6 +252,16 @@ exports.commands = [{
bindKey: bindKey("Shift-End", "Shift-End"),
exec: function(editor) { editor.getSelection().selectLineEnd(); },
readOnly: true
}, {
name: "togglerecording",
bindKey: bindKey("Ctrl-Shift-E", "Ctrl-Shift-E"),
exec: function(editor) { editor.commands.toggleRecording(); },
readOnly: true
}, {
name: "replaymacro",
bindKey: bindKey("Ctrl-E", "Ctrl-E"),
exec: function(editor) { editor.commands.replay(editor); },
readOnly: true
},
// commands disabled in readOnly mode