mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
54c6c6e3d7
commit
2b08beb226
@ -644,6 +644,9 @@ def onkeydown(container_id, close_action, ev):
|
|||||||
elif ev.key is 'Escape':
|
elif ev.key is 'Escape':
|
||||||
ev.preventDefault(), ev.stopPropagation()
|
ev.preventDefault(), ev.stopPropagation()
|
||||||
close_action()
|
close_action()
|
||||||
|
elif ev.key is 'Delete':
|
||||||
|
ev.preventDefault(), ev.stopPropagation()
|
||||||
|
delete_book()
|
||||||
|
|
||||||
|
|
||||||
def init(container_id):
|
def init(container_id):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user