summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfisle <fisle@fisle.eu>2015-09-19 16:46:49 +0300
committerfisle <fisle@fisle.eu>2015-09-19 16:46:49 +0300
commit14b7213af4f9409bdf4211f2731d5a1ca2c99ce3 (patch)
tree61584c870baeddc02968313e61722cdca4bdbc0d
parent119d4b787d4fbe27c526b5e61bb6cc02ba743a29 (diff)
downloadwekan-14b7213af4f9409bdf4211f2731d5a1ca2c99ce3.tar.gz
wekan-14b7213af4f9409bdf4211f2731d5a1ca2c99ce3.tar.bz2
wekan-14b7213af4f9409bdf4211f2731d5a1ca2c99ce3.zip
Shortcut: F toggles filter sidebar
-rw-r--r--client/lib/keyboard.js11
-rw-r--r--i18n/en.i18n.json1
2 files changed, 12 insertions, 0 deletions
diff --git a/client/lib/keyboard.js b/client/lib/keyboard.js
index ab18d1cf..f8212c9b 100644
--- a/client/lib/keyboard.js
+++ b/client/lib/keyboard.js
@@ -23,6 +23,14 @@ Mousetrap.bind('x', () => {
}
});
+Mousetrap.bind('f', () => {
+ if (Sidebar.isOpen() && Sidebar.getView() === 'filter') {
+ Sidebar.toggle();
+ } else {
+ Sidebar.setView('filter');
+ }
+});
+
Mousetrap.bind(['down', 'up'], (evt, key) => {
if (!Session.get('currentCard')) {
return;
@@ -64,6 +72,9 @@ Template.keyboardShortcuts.helpers({
keys: ['Q'],
action: 'shortcut-filter-my-cards',
}, {
+ keys: ['F'],
+ action: 'shortcut-toggle-filterbar',
+ }, {
keys: ['X'],
action: 'shortcut-clear-filters',
}, {
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index f2298b62..a8c2c5d9 100644
--- a/i18n/en.i18n.json
+++ b/i18n/en.i18n.json
@@ -184,6 +184,7 @@
"shortcut-close-dialog": "Close Dialog",
"shortcut-filter-my-cards": "Filter my cards",
"shortcut-show-shortcuts": "Bring up this shortcuts list",
+ "shortcut-toggle-filterbar": "Toggle Filter Sidebar",
"shortcut-toggle-sidebar": "Toggle Board Sidebar",
"signupPopup-title": "Create an Account",
"star-board-title": "Click to star this board. It will show up at top of your boards list.",