* small command changes

This commit is contained in:
Ruben Daniels 2012-04-18 12:42:37 +02:00
commit 18956d8ee7
3 changed files with 3 additions and 3 deletions

View file

@ -311,7 +311,7 @@ exports.commands = [{
multiSelectAction: "forEach"
}, {
name: "togglecomment",
bindKey: bindKey("Ctrl-7", "Command-7"),
bindKey: bindKey("Ctrl-/", "Command-/"),
exec: function(editor) { editor.toggleCommentLines(); },
multiSelectAction: "forEach"
}, {

View file

@ -93,7 +93,7 @@ var KeyBinding = function(editor) {
// allow keyboardHandler to consume keys
if (toExecute.command != "null")
success = commands.exec(toExecute.command, this.$editor, toExecute.args);
success = commands.exec(toExecute.command, this.$editor, toExecute.args, e);
else
success = true;

View file

@ -746,7 +746,7 @@ var VirtualRenderer = function(container, theme) {
if (center)
offset -= this.$size.scrollerHeight / 2;
if (this.$animatedScroll && Math.abs(offset - this.scrollTop) < 10000) {
if (this.$animatedScroll && Math.abs(offset - this.scrollTop) < 100000) {
var _self = this;
var steps = _self.$calcSteps(this.scrollTop, offset);