From 31373a501496a3008f89e298c7f46340685ceefe Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 15 May 2019 09:22:00 +0300 Subject: [PATCH] Add keyboard shortcuts for keyword removing. --- src/article/manuscript/ManuscriptPackage.js | 1 + src/article/metadata/MetadataPackage.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/article/manuscript/ManuscriptPackage.js b/src/article/manuscript/ManuscriptPackage.js index 3da90d5d6..184ef759f 100644 --- a/src/article/manuscript/ManuscriptPackage.js +++ b/src/article/manuscript/ManuscriptPackage.js @@ -455,6 +455,7 @@ export default { // KeyboardShortcuts config.addKeyboardShortcut('CommandOrControl+a', { command: 'table:select-all' }) + config.addKeyboardShortcut('CommandOrControl+Delete', { command: 'remove-metadata-keyword' }) // Register commands and keyboard shortcuts for collections registerCollectionCommand(config, 'author', ['metadata', 'authors'], { keyboardShortcut: 'CommandOrControl+Alt+A', nodeType: 'person' }) diff --git a/src/article/metadata/MetadataPackage.js b/src/article/metadata/MetadataPackage.js index e9da5ce3d..ff8a2f0db 100644 --- a/src/article/metadata/MetadataPackage.js +++ b/src/article/metadata/MetadataPackage.js @@ -322,6 +322,7 @@ export default { config.addKeyboardShortcut('CommandOrControl+Alt+Up', { command: 'move-up-col-item' }) config.addKeyboardShortcut('CommandOrControl+Alt+Down', { command: 'move-down-col-item' }) config.addKeyboardShortcut('CommandOrControl+Alt+Delete', { command: 'remove-col-item' }) + config.addKeyboardShortcut('CommandOrControl+Delete', { command: 'remove-metadata-keyword' }) // Labels config.addLabel('abstracts', 'Abstracts')