mirror of
https://github.com/nextcloud/server.git
synced 2024-07-29 20:15:55 +02:00
Fix double destroy on escape.
This commit is contained in:
parent
fdfdd2e4e7
commit
7a2b23a036
@ -39,7 +39,8 @@
|
||||
return;
|
||||
}
|
||||
// Escape
|
||||
if(event.keyCode === 27 && self.options.closeOnEscape) {
|
||||
if(event.keyCode === 27 && event.type === 'keydown' && self.options.closeOnEscape) {
|
||||
event.stopImmediatePropagation();
|
||||
self.close();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user