mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 18:30:13 +01:00
Prioritize escape actions with a label hierarchy instead of an integer
This commit is contained in:
parent
40c2411f2a
commit
42f6dc686f
6 changed files with 34 additions and 16 deletions
|
|
@ -57,7 +57,7 @@ Router.route('/boards/:boardId/:slug/:cardId', {
|
|||
});
|
||||
|
||||
// Close the card details pane by pressing escape
|
||||
EscapeActions.register(50,
|
||||
EscapeActions.register('detailedPane',
|
||||
function() { return ! Session.equals('currentCard', null); },
|
||||
function() { Utils.goBoardId(Session.get('currentBoard')); }
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue