mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix order of ctrl-shift-p on mac
This commit is contained in:
parent
321f91935a
commit
b5d9105d06
2
node_modules/ace/lib/ace/commands/default_commands.js
generated
vendored
2
node_modules/ace/lib/ace/commands/default_commands.js
generated
vendored
@ -622,7 +622,7 @@ exports.commands = [{
|
||||
scrollIntoView: "cursor"
|
||||
}, {
|
||||
name: "transposeletters",
|
||||
bindKey: bindKey("Ctrl-T", "Ctrl-T"),
|
||||
bindKey: bindKey("Alt-X", "Ctrl-X"),
|
||||
exec: function(editor) { editor.transposeLetters(); },
|
||||
multiSelectAction: function(editor) {editor.transposeSelections(1); },
|
||||
scrollIntoView: "cursor"
|
||||
|
||||
11
node_modules/ace/lib/ace/keyboard/hash_handler.js
generated
vendored
11
node_modules/ace/lib/ace/keyboard/hash_handler.js
generated
vendored
@ -119,7 +119,8 @@ MultiHashHandler.prototype = HashHandler.prototype;
|
||||
|
||||
function getPosition(command) {
|
||||
return typeof command == "object" && command.bindKey
|
||||
&& command.bindKey.position || 0;
|
||||
&& command.bindKey.position
|
||||
|| (command.isDefault ? -100 : 0);
|
||||
}
|
||||
this._addCommandToBinding = function(keyId, command, position) {
|
||||
var ckb = this.commandKeyBinding, i;
|
||||
@ -133,13 +134,11 @@ MultiHashHandler.prototype = HashHandler.prototype;
|
||||
} else if ((i = ckb[keyId].indexOf(command)) != -1) {
|
||||
ckb[keyId].splice(i, 1);
|
||||
}
|
||||
|
||||
|
||||
if (typeof position != "number") {
|
||||
if (position || command.isDefault)
|
||||
position = -100;
|
||||
else
|
||||
position = getPosition(command);
|
||||
position = getPosition(command);
|
||||
}
|
||||
|
||||
var commands = ckb[keyId];
|
||||
for (i = 0; i < commands.length; i++) {
|
||||
var other = commands[i];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user