mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Shortcut: F toggles filter sidebar
This commit is contained in:
parent
119d4b787d
commit
14b7213af4
2 changed files with 12 additions and 0 deletions
|
|
@ -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) => {
|
Mousetrap.bind(['down', 'up'], (evt, key) => {
|
||||||
if (!Session.get('currentCard')) {
|
if (!Session.get('currentCard')) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -63,6 +71,9 @@ Template.keyboardShortcuts.helpers({
|
||||||
}, {
|
}, {
|
||||||
keys: ['Q'],
|
keys: ['Q'],
|
||||||
action: 'shortcut-filter-my-cards',
|
action: 'shortcut-filter-my-cards',
|
||||||
|
}, {
|
||||||
|
keys: ['F'],
|
||||||
|
action: 'shortcut-toggle-filterbar',
|
||||||
}, {
|
}, {
|
||||||
keys: ['X'],
|
keys: ['X'],
|
||||||
action: 'shortcut-clear-filters',
|
action: 'shortcut-clear-filters',
|
||||||
|
|
|
||||||
|
|
@ -184,6 +184,7 @@
|
||||||
"shortcut-close-dialog": "Close Dialog",
|
"shortcut-close-dialog": "Close Dialog",
|
||||||
"shortcut-filter-my-cards": "Filter my cards",
|
"shortcut-filter-my-cards": "Filter my cards",
|
||||||
"shortcut-show-shortcuts": "Bring up this shortcuts list",
|
"shortcut-show-shortcuts": "Bring up this shortcuts list",
|
||||||
|
"shortcut-toggle-filterbar": "Toggle Filter Sidebar",
|
||||||
"shortcut-toggle-sidebar": "Toggle Board Sidebar",
|
"shortcut-toggle-sidebar": "Toggle Board Sidebar",
|
||||||
"signupPopup-title": "Create an Account",
|
"signupPopup-title": "Create an Account",
|
||||||
"star-board-title": "Click to star this board. It will show up at top of your boards list.",
|
"star-board-title": "Click to star this board. It will show up at top of your boards list.",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue