diff --git a/src/editor/MainMenu.js b/src/editor/MainMenu.js index 2eeef52b..53ad44ce 100644 --- a/src/editor/MainMenu.js +++ b/src/editor/MainMenu.js @@ -228,7 +228,7 @@ class MainMenu { template.innerHTML = ` - + ` diff --git a/src/editor/components/seMenuItem.js b/src/editor/components/seMenuItem.js index d855d291..0ea61f59 100644 --- a/src/editor/components/seMenuItem.js +++ b/src/editor/components/seMenuItem.js @@ -111,7 +111,7 @@ export class SeMenuItem extends HTMLElement { // only track keyboard shortcuts for the body containing the SVG-Editor if (e.target.nodeName !== 'BODY') return // normalize key - const key = `${(e.metaKey) ? 'meta+' : ''}${(e.ctrlKey) ? 'ctrl+' : ''}${e.key.toUpperCase()}` + const key = `${(e.metaKey) ? 'meta+' : ''}${(e.ctrlKey) ? 'ctrl+' : ''}${(e.shiftKey) ? 'shift+' : ''}${e.key.toUpperCase()}` if (shortcut !== key) return // launch the click event if (this.id) {