mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5a66e094e3
commit
e1e9b023af
@ -139,6 +139,7 @@ class ModalContainer:
|
||||
|
||||
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:
|
||||
event.preventDefault(), event.stopPropagation()
|
||||
self.close_current_modal(event)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user