summaryrefslogtreecommitdiffstats
path: root/client/lib
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-28 00:32:08 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-28 00:41:50 +0200
commit35d1d6b463c4a91ab06838896f5531f759696da2 (patch)
tree9fd93cc1e2e5213509384c19bed415ff787ac188 /client/lib
parent31c4aa01bda63e510e120ae9da8149c732111d2a (diff)
downloadwekan-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.js25
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'
+ }]
+});