Skip to content

Commit 4f523cc

Browse files
committed
Fix #327: Remove command Ctrl-Shift-P on ace editor
1 parent c885560 commit 4f523cc

File tree

1 file changed

+14
-0
lines changed
  • addons/cb.files.editor/editor

1 file changed

+14
-0
lines changed

addons/cb.files.editor/editor/view.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,20 @@ define([
220220
jshint.applySettings(that.editor);
221221
});
222222

223+
224+
// Clear command on Windows/ChromeOS Ctrl-Shift-P
225+
this.editor.commands.addCommands([{
226+
name: "commandpalette",
227+
bindKey: {
228+
win: "Ctrl-Shift-P",
229+
mac: "Command-Shift-P"
230+
},
231+
exec: function(editor, line) {
232+
return false;
233+
},
234+
readOnly: true
235+
}]);
236+
223237
// Send change
224238
$doc.on('change', function(d) {
225239
if (that._op_set) return;

0 commit comments

Comments
 (0)