untangle keybinding.js

This commit is contained in:
nightwing 2011-11-19 20:29:36 +04:00
commit 97b00ea46b
4 changed files with 67 additions and 82 deletions

View file

@ -284,6 +284,9 @@ exports.commands = [{
name: "indent",
bindKey: bindKey("Tab", "Tab"),
exec: function(editor) { editor.indent(); }
}, {
name: "insertstring",
exec: function(editor, str) { editor.insert(str); }
}, {
name: "inserttext",
exec: function(editor, args) {
@ -318,21 +321,15 @@ exports.commands = [{
}, {
name: "unfold",
bindKey: bindKey("Alt-Shift-L", "Alt-Shift-L"),
exec: function(editor) {
editor.session.toggleFold(true);
}
exec: function(editor) { editor.session.toggleFold(true); }
}, {
name: "foldall",
bindKey: bindKey("Alt-0", "Alt-0"),
exec: function(editor) {
editor.session.foldAll();
}
exec: function(editor) { editor.session.foldAll(); }
}, {
name: "unfoldall",
bindKey: bindKey("Alt-Shift-0", "Alt-Shift-0"),
exec: function(editor) {
editor.session.unfold();
}
exec: function(editor) { editor.session.unfold(); }
}];
});