diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index a041381b6..66160fe77 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -428,7 +428,14 @@ class NoteTextComponent extends React.Component { if (this.editor_) { this.editor_.editor.renderer.on('afterRender', this.onAfterEditorRender_); - const cancelledKeys = ['Ctrl+F', 'Ctrl+T', 'Ctrl+P', 'Ctrl+Q', 'Ctrl+L', 'Ctrl+,']; + const cancelledKeys = []; + const letters = ['F', 'T', 'P', 'Q', 'L', ',']; + for (let i = 0; i < letters.length; i++) { + const l = letters[i]; + cancelledKeys.push('Ctrl+' + l); + cancelledKeys.push('Command+' + l); + } + for (let i = 0; i < cancelledKeys.length; i++) { const k = cancelledKeys[i]; this.editor_.editor.commands.bindKey(k, () => { diff --git a/ElectronClient/app/package-lock.json b/ElectronClient/app/package-lock.json index 23cfdd9b3..4e629de80 100644 --- a/ElectronClient/app/package-lock.json +++ b/ElectronClient/app/package-lock.json @@ -2641,7 +2641,8 @@ "jsbn": { "version": "0.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "json-schema": { "version": "0.2.3",