mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 19:00:12 +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
|
|
@ -204,4 +204,7 @@ $(document).on('click', function(evt) {
|
|||
|
||||
// Press escape to close the popup.
|
||||
var bindPopup = function(f) { return _.bind(f, Popup); };
|
||||
EscapeActions.register(20, bindPopup(Popup.isOpen), bindPopup(Popup.close));
|
||||
EscapeActions.register('popup',
|
||||
bindPopup(Popup.isOpen),
|
||||
bindPopup(Popup.close)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue