Add editor.toUpperCase() and editor.toLowerCase()

Also add Ctrl-U (uppercase) and Ctrl-Shift-U (lowercase) bindings.
This commit is contained in:
Chris Wanstrath 2011-11-16 10:34:19 -08:00
commit 351c1e75fb
3 changed files with 78 additions and 0 deletions

View file

@ -301,6 +301,14 @@ exports.commands = [{
name: "transposeletters",
bindKey: bindKey("Ctrl-T", "Ctrl-T"),
exec: function(editor) { editor.transposeLetters(); }
}, {
name: "touppercase",
bindKey: bindKey("Ctrl-U", "Ctrl-U"),
exec: function(editor) { editor.toUpperCase(); }
}, {
name: "tolowercase",
bindKey: bindKey("Ctrl-Shift-U", "Ctrl-Shift-U"),
exec: function(editor) { editor.toLowerCase(); }
}, {
name: "fold",
bindKey: bindKey("Alt-L", "Alt-L"),