Skip to content

Commit

Permalink
Add keyboard shortcuts for keyword removing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral authored and obuchtala committed May 16, 2019
1 parent f1e5edf commit 31373a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/article/manuscript/ManuscriptPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down
1 change: 1 addition & 0 deletions src/article/metadata/MetadataPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 31373a5

Please sign in to comment.