diff --git a/node_modules/ace/lib/ace/commands/default_commands.js b/node_modules/ace/lib/ace/commands/default_commands.js index 472da7d5..9dae3c2c 100644 --- a/node_modules/ace/lib/ace/commands/default_commands.js +++ b/node_modules/ace/lib/ace/commands/default_commands.js @@ -622,7 +622,7 @@ exports.commands = [{ scrollIntoView: "cursor" }, { name: "transposeletters", - bindKey: bindKey("Alt-X", "Ctrl-X"), + bindKey: bindKey("Alt-X", "Ctrl-T"), exec: function(editor) { editor.transposeLetters(); }, multiSelectAction: function(editor) {editor.transposeSelections(1); }, scrollIntoView: "cursor" diff --git a/node_modules/ace/lib/ace/editor.js b/node_modules/ace/lib/ace/editor.js index 0545c33e..fa5a0c63 100644 --- a/node_modules/ace/lib/ace/editor.js +++ b/node_modules/ace/lib/ace/editor.js @@ -1426,6 +1426,7 @@ var Editor = function(renderer, session) { range = new Range(cursor.row, column-2, cursor.row, column); } this.session.replace(range, swap); + this.session.selection.moveToPosition(range.end); }; /**