|
@@ -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',
|