diff options
Diffstat (limited to 'client/components/cards')
-rw-r--r-- | client/components/cards/details.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/components/cards/details.js b/client/components/cards/details.js index 6ab7da22..3f141622 100644 --- a/client/components/cards/details.js +++ b/client/components/cards/details.js @@ -94,3 +94,11 @@ Template.moveCardPopup.events({ Popup.close(); } }); + +// Close the card details pane by pressing escape +EscapeActions.register('detailsPane', + function() { Utils.goBoardId(Session.get('currentBoard')); }, + function() { return ! Session.equals('currentCard', null); }, { + noClickEscapeOn: '.js-card-details' + } +); |