From 72f20b54799a56ff317d60034d2247a1951532ed Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Apr 2021 20:00:46 +0530 Subject: [PATCH] Fix #1924853 [E-book viewer: the list of keyboard shortcuts should be displayed just below the action button](https://bugs.launchpad.net/calibre/+bug/1924853) --- src/pyj/read_book/prefs/keyboard.pyj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/prefs/keyboard.pyj b/src/pyj/read_book/prefs/keyboard.pyj index d4e1dfdde3..36802c92d6 100644 --- a/src/pyj/read_book/prefs/keyboard.pyj +++ b/src/pyj/read_book/prefs/keyboard.pyj @@ -64,7 +64,8 @@ def key_widget(key): def close_customize_shortcut(apply_changes): container = get_container() - container.firstChild.style.display = 'block' + container.firstChild.style.display = 'flex' + container.firstChild.nextSibling.style.display = 'block' container.lastChild.style.display = 'none' if close_customize_shortcut.shortcut_being_customized: for item in container.firstChild.querySelectorAll('[data-user-data]'): @@ -118,6 +119,7 @@ def add_key_widget(): def customize_shortcut(sc_name): container = get_container() container.firstChild.style.display = 'none' + container.firstChild.nextSibling.style.display = 'none' container.lastChild.style.display = 'block' close_customize_shortcut.shortcut_being_customized = sc_name shortcuts = v'[]'