We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 059b171 commit afec089Copy full SHA for afec089
client/modules/IDE/components/Editor.jsx
@@ -168,7 +168,12 @@ class Editor extends React.Component {
168
169
this._cm.on('keydown', (_cm, e) => {
170
// 70 === f
171
- if ((e.metaKey || e.ctrlKey) && e.shiftKey && e.keyCode === 70) {
+ if (
172
+ ((metaKey === 'Cmd' && e.metaKey) ||
173
+ (metaKey === 'Ctrl' && e.ctrlKey)) &&
174
+ e.shiftKey &&
175
+ e.keyCode === 70
176
+ ) {
177
e.preventDefault();
178
this.tidyCode();
179
}
0 commit comments