mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Set Shortcut to filter assignees
This commit is contained in:
parent
c3c8b1eb70
commit
22b40aab5d
1 changed files with 12 additions and 0 deletions
|
|
@ -33,6 +33,14 @@ Mousetrap.bind('q', () => {
|
|||
}
|
||||
});
|
||||
|
||||
Mousetrap.bind('a', () => {
|
||||
const currentBoardId = Session.get('currentBoard');
|
||||
const currentUserId = Meteor.userId();
|
||||
if (currentBoardId && currentUserId) {
|
||||
Filter.assignees.toggle(currentUserId);
|
||||
}
|
||||
});
|
||||
|
||||
Mousetrap.bind('x', () => {
|
||||
if (Filter.isActive()) {
|
||||
Filter.reset();
|
||||
|
|
@ -181,6 +189,10 @@ Template.keyboardShortcuts.helpers({
|
|||
keys: ['q'],
|
||||
action: 'shortcut-filter-my-cards',
|
||||
},
|
||||
{
|
||||
keys: ['a'],
|
||||
action: 'shortcut-filter-my-cards',
|
||||
},
|
||||
{
|
||||
keys: ['f'],
|
||||
action: 'shortcut-toggle-filterbar',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue