From 18956d8ee7b1be3b91d7f9c379091fdd385bfd0e Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 18 Apr 2012 12:42:37 +0200 Subject: [PATCH] * small command changes --- lib/ace/commands/default_commands.js | 2 +- lib/ace/keyboard/keybinding.js | 2 +- lib/ace/virtual_renderer.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index f109b336..d12478a3 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -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" }, { diff --git a/lib/ace/keyboard/keybinding.js b/lib/ace/keyboard/keybinding.js index 6e6656d5..310a9b74 100644 --- a/lib/ace/keyboard/keybinding.js +++ b/lib/ace/keyboard/keybinding.js @@ -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; diff --git a/lib/ace/virtual_renderer.js b/lib/ace/virtual_renderer.js index 66e35222..c8af523f 100644 --- a/lib/ace/virtual_renderer.js +++ b/lib/ace/virtual_renderer.js @@ -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);