* small command changes
This commit is contained in:
parent
ce891c2c2e
commit
18956d8ee7
3 changed files with 3 additions and 3 deletions
|
|
@ -311,7 +311,7 @@ exports.commands = [{
|
||||||
multiSelectAction: "forEach"
|
multiSelectAction: "forEach"
|
||||||
}, {
|
}, {
|
||||||
name: "togglecomment",
|
name: "togglecomment",
|
||||||
bindKey: bindKey("Ctrl-7", "Command-7"),
|
bindKey: bindKey("Ctrl-/", "Command-/"),
|
||||||
exec: function(editor) { editor.toggleCommentLines(); },
|
exec: function(editor) { editor.toggleCommentLines(); },
|
||||||
multiSelectAction: "forEach"
|
multiSelectAction: "forEach"
|
||||||
}, {
|
}, {
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ var KeyBinding = function(editor) {
|
||||||
|
|
||||||
// allow keyboardHandler to consume keys
|
// allow keyboardHandler to consume keys
|
||||||
if (toExecute.command != "null")
|
if (toExecute.command != "null")
|
||||||
success = commands.exec(toExecute.command, this.$editor, toExecute.args);
|
success = commands.exec(toExecute.command, this.$editor, toExecute.args, e);
|
||||||
else
|
else
|
||||||
success = true;
|
success = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -746,7 +746,7 @@ var VirtualRenderer = function(container, theme) {
|
||||||
if (center)
|
if (center)
|
||||||
offset -= this.$size.scrollerHeight / 2;
|
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 _self = this;
|
||||||
var steps = _self.$calcSteps(this.scrollTop, offset);
|
var steps = _self.$calcSteps(this.scrollTop, offset);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue