This commit is contained in:
Kovid Goyal 2019-09-30 08:32:03 +05:30
parent 5a66e094e3
commit e1e9b023af
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -139,6 +139,7 @@ class ModalContainer:
def onkeydown(self, event): def onkeydown(self, event):
if (event.key is 'Escape' or event.key is 'Esc') and not event.altKey and not event.ctrlKey and not event.metaKey and not event.shiftKey: if (event.key is 'Escape' or event.key is 'Esc') and not event.altKey and not event.ctrlKey and not event.metaKey and not event.shiftKey:
event.preventDefault(), event.stopPropagation()
self.close_current_modal(event) self.close_current_modal(event)