Content server: Allow pressing v to read the book from the book details page

Fixes #1920910 [[Enhancement - Content server] Add ability to View book from the Book details page by clicking Enter](https://bugs.launchpad.net/calibre/+bug/1920910)
This commit is contained in:
Kovid Goyal 2021-03-24 13:57:21 +05:30
parent d902ed2646
commit 1d6694b04f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -720,6 +720,8 @@ def onkeydown(container_id, close_action, ev):
elif ev.key is 'Delete': elif ev.key is 'Delete':
ev.preventDefault(), ev.stopPropagation() ev.preventDefault(), ev.stopPropagation()
delete_book() delete_book()
elif ev.key is 'v' or ev.key is 'V':
read_book(render_book.book_id)
def init(container_id): def init(container_id):