jumptomatching should be enabled in readonly mode
This commit is contained in:
parent
73dd10abc7
commit
eebdf1360f
1 changed files with 5 additions and 4 deletions
|
|
@ -263,6 +263,11 @@ exports.commands = [{
|
||||||
bindKey: bindKey("Ctrl-Shift-E", "Command-Shift-E"),
|
bindKey: bindKey("Ctrl-Shift-E", "Command-Shift-E"),
|
||||||
exec: function(editor) { editor.commands.replay(editor); },
|
exec: function(editor) { editor.commands.replay(editor); },
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
}, {
|
||||||
|
name: "jumptomatching",
|
||||||
|
bindKey: bindKey("Ctrl-Shift-P", "Ctrl-Shift-P"),
|
||||||
|
exec: function(editor) { editor.jumpToMatching(); },
|
||||||
|
readOnly: true
|
||||||
},
|
},
|
||||||
|
|
||||||
// commands disabled in readOnly mode
|
// commands disabled in readOnly mode
|
||||||
|
|
@ -381,10 +386,6 @@ exports.commands = [{
|
||||||
name: "tolowercase",
|
name: "tolowercase",
|
||||||
bindKey: bindKey("Ctrl-Shift-U", "Ctrl-Shift-U"),
|
bindKey: bindKey("Ctrl-Shift-U", "Ctrl-Shift-U"),
|
||||||
exec: function(editor) { editor.toLowerCase(); }
|
exec: function(editor) { editor.toLowerCase(); }
|
||||||
}, {
|
|
||||||
name: "jumptomatching",
|
|
||||||
bindKey: bindKey("Ctrl-Shift-P", "Ctrl-Shift-P"),
|
|
||||||
exec: function(editor) { editor.jumpToMatching(); }
|
|
||||||
}];
|
}];
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue