diff --git a/src/pyj/read_book/prefs/keyboard.pyj b/src/pyj/read_book/prefs/keyboard.pyj index 438078c624..b187041f18 100644 --- a/src/pyj/read_book/prefs/keyboard.pyj +++ b/src/pyj/read_book/prefs/keyboard.pyj @@ -63,13 +63,13 @@ def key_widget(key): def close_customize_shortcut(apply_changes): container = get_container() container.firstChild.style.display = 'block' + container.lastChild.style.display = 'none' if close_customize_shortcut.shortcut_being_customized: for item in container.firstChild.querySelectorAll('[data-user-data]'): q = JSON.parse(item.dataset.userData) if q.name is close_customize_shortcut.shortcut_being_customized: item.scrollIntoView() break - container.lastChild.style.display = 'none' if apply_changes: shortcuts = v'[]' for x in container.lastChild.querySelectorAll('[data-shortcut]'):