From 1d6694b04fa67663c756adf59498e3fdf51ed0e5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 Mar 2021 13:57:21 +0530 Subject: [PATCH] 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) --- src/pyj/book_list/book_details.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index 7bd54c9f97..fecb3bbfb2 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -720,6 +720,8 @@ def onkeydown(container_id, close_action, ev): elif ev.key is 'Delete': ev.preventDefault(), ev.stopPropagation() delete_book() + elif ev.key is 'v' or ev.key is 'V': + read_book(render_book.book_id) def init(container_id):