mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 02:56:19 +01:00
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)
This commit is contained in:
parent
ea2d5634fd
commit
72f20b5479
1 changed files with 3 additions and 1 deletions
|
|
@ -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'[]'
|
||||
|
|
|
|||
Loading…
Reference in a new issue