Fix #1909314 [[Enhancement - Content server] Delete book by pressing Delete key on the Book details page](https://bugs.launchpad.net/calibre/+bug/1909314)

This commit is contained in:
Kovid Goyal 2021-01-06 18:57:49 +05:30
parent 54c6c6e3d7
commit 2b08beb226
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -644,6 +644,9 @@ def onkeydown(container_id, close_action, ev):
elif ev.key is 'Escape':
ev.preventDefault(), ev.stopPropagation()
close_action()
elif ev.key is 'Delete':
ev.preventDefault(), ev.stopPropagation()
delete_book()
def init(container_id):