fix keybindings

This commit is contained in:
Fabian Jakobs 2011-03-07 20:11:01 +01:00
commit 1f9206f079

View file

@ -257,7 +257,7 @@ canon.addCommand({
});
canon.addCommand({
name: "gotoright",
bindKey: bindKey("Right", "Right|Ctrl-Fyou "),
bindKey: bindKey("Right", "Right|Ctrl-F"),
exec: function(env, args, request) { env.editor.navigateRight(args.times); }
});
canon.addCommand({
@ -315,11 +315,12 @@ canon.addCommand({
});
canon.addCommand({
name: "removetolinestart",
bindKey: bindKey("WIN", "MAC"),
bindKey: bindKey(null, "Option-Backspace"),
exec: function(env, args, request) { env.editor.removeToLineStart(); }
});
canon.addCommand({
name: "removetolineend",
bindKey: bindKey(null, "Ctrl-K"),
exec: function(env, args, request) { env.editor.removeToLineEnd(); }
});
canon.addCommand({
@ -350,7 +351,7 @@ canon.addCommand({
});
canon.addCommand({
name: "centerselection",
bindKey: bindKey(null, "Ctrl-L"),
bindKey: bindKey("Ctrl-L", "Ctrl-L"),
exec: function(env, args, request) { env.editor.centerSelection(); }
});
canon.addCommand({
@ -360,9 +361,8 @@ canon.addCommand({
});
canon.addCommand({
name: "transposeletters",
bindKey: bindKey(null, "Ctrl-L"),
bindKey: bindKey("Ctrl-T", "Ctrl-T"),
exec: function(env, args, request) { env.editor.transposeLetters(); }
});
});
});