diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index c5d34aae..d018e8bd 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -415,7 +415,7 @@ exports.commands = [{ readOnly: true }, { name: "passKeysToBrowser", - bindKey: bindKey("null", "null"), + bindKey: bindKey(null, null), exec: function() {}, passEvent: true, readOnly: true diff --git a/lib/ace/edit_session/folding.js b/lib/ace/edit_session/folding.js index a86c27ce..53071dda 100644 --- a/lib/ace/edit_session/folding.js +++ b/lib/ace/edit_session/folding.js @@ -794,7 +794,7 @@ function Folding() { this.foldAll(startRow, endRow, options.all ? 10000 : 0); } else if (options.children) { endRow = range ? range.end.row : this.getLength(); - this.foldAll(row + 1, range.end.row, options.all ? 10000 : 0); + this.foldAll(row + 1, endRow, options.all ? 10000 : 0); } else if (range) { if (options.all) range.collapseChildren = 10000;