diff --git a/client/lib/keyboard.js b/client/lib/keyboard.js index 3c06f8ce5..279b3dd6f 100644 --- a/client/lib/keyboard.js +++ b/client/lib/keyboard.js @@ -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',