diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-08-28 00:32:08 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-08-28 00:41:50 +0200 |
commit | 35d1d6b463c4a91ab06838896f5531f759696da2 (patch) | |
tree | 9fd93cc1e2e5213509384c19bed415ff787ac188 /client/lib | |
parent | 31c4aa01bda63e510e120ae9da8149c732111d2a (diff) | |
download | wekan-35d1d6b463c4a91ab06838896f5531f759696da2.tar.gz wekan-35d1d6b463c4a91ab06838896f5531f759696da2.tar.bz2 wekan-35d1d6b463c4a91ab06838896f5531f759696da2.zip |
Display keyboard shortcuts on a modal
Fixes #241
Diffstat (limited to 'client/lib')
-rw-r--r-- | client/lib/keyboard.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/client/lib/keyboard.js b/client/lib/keyboard.js index 066836d4..fa1747e3 100644 --- a/client/lib/keyboard.js +++ b/client/lib/keyboard.js @@ -35,3 +35,28 @@ Mousetrap.bind(['down', 'up'], (evt, key) => { Utils.goCardId(nextCardId); } }); + +Template.keyboardShortcuts.helpers({ + mapping: [{ + keys: ['W'], + action: 'Toogle Board Sidebar' + }, { + keys: ['Q'], + action: 'Filter my cards' + }, { + keys: ['X'], + action: 'Clear all filters' + }, { + keys: ['?'], + action: 'Bring up this shortcuts list' + }, { + keys: ['ESC'], + action: 'Close Dialog' + }, { + keys: ['@'], + action: 'Autocomplete members' + }, { + keys: [':'], + action: 'Autocomplete emojies' + }] +}); |