mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -64,7 +64,8 @@ def key_widget(key):
|
|||||||
|
|
||||||
def close_customize_shortcut(apply_changes):
|
def close_customize_shortcut(apply_changes):
|
||||||
container = get_container()
|
container = get_container()
|
||||||
container.firstChild.style.display = 'block'
|
container.firstChild.style.display = 'flex'
|
||||||
|
container.firstChild.nextSibling.style.display = 'block'
|
||||||
container.lastChild.style.display = 'none'
|
container.lastChild.style.display = 'none'
|
||||||
if close_customize_shortcut.shortcut_being_customized:
|
if close_customize_shortcut.shortcut_being_customized:
|
||||||
for item in container.firstChild.querySelectorAll('[data-user-data]'):
|
for item in container.firstChild.querySelectorAll('[data-user-data]'):
|
||||||
@ -118,6 +119,7 @@ def add_key_widget():
|
|||||||
def customize_shortcut(sc_name):
|
def customize_shortcut(sc_name):
|
||||||
container = get_container()
|
container = get_container()
|
||||||
container.firstChild.style.display = 'none'
|
container.firstChild.style.display = 'none'
|
||||||
|
container.firstChild.nextSibling.style.display = 'none'
|
||||||
container.lastChild.style.display = 'block'
|
container.lastChild.style.display = 'block'
|
||||||
close_customize_shortcut.shortcut_being_customized = sc_name
|
close_customize_shortcut.shortcut_being_customized = sc_name
|
||||||
shortcuts = v'[]'
|
shortcuts = v'[]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user