Skip to content

Commit 27ffd22

Browse files
author
Ives van Hoorne
committed
Set Quick Command window under CMD+Shift+P
1 parent fb844e0 commit 27ffd22

File tree

1 file changed

+10
-0
lines changed
  • packages/app/src/app/components/sandbox/CodeEditor

1 file changed

+10
-0
lines changed

packages/app/src/app/components/sandbox/CodeEditor/Monaco.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,16 @@ export default class CodeEditor extends React.Component<Props, State> {
728728
this.handleSaveCode();
729729
}
730730
);
731+
732+
const quickCommandAction = this.editor.getAction(
733+
'editor.action.quickCommand'
734+
);
735+
this.editor.addCommand(
736+
this.monaco.KeyMod.CtrlCmd |
737+
this.monaco.KeyMod.Shift |
738+
this.monaco.KeyCode.KEY_P, // eslint-disable-line no-bitwise
739+
quickCommandAction._run
740+
);
731741
};
732742

733743
disposeModules = (modules: Array<Module>) => {

0 commit comments

Comments
 (0)