diff options
author | Martin Liska <mliska@suse.cz> | 2021-06-14 10:37:40 +0300 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-01-22 18:16:35 +0300 |
commit | 8cf3179ad2fb0dc55b189deba7f9a00691ed462e (patch) | |
tree | 2a360714e5a9b83f05b3d9c8aa4251411434eb8b /doc | |
parent | 0cc338f9c5e9ba29bb82de40129e357d54439418 (diff) |
Implement new shortcuts:
- "/" for Focus search bar
- "ESC" - clear highlighted text
Fixes #691.
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/usage/theming.rst | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/usage/theming.rst b/doc/usage/theming.rst index f66734b96..5f5417061 100644 --- a/doc/usage/theming.rst +++ b/doc/usage/theming.rst @@ -158,9 +158,18 @@ These themes are: dimension string such as '70em' or '50%'. Use 'none' if you don't want a width limit. Defaults may depend on the theme (often 800px). - - **navigation_with_keys** (true or false): Allow navigating to the - previous/next page using the keyboard's left and right arrows. Defaults to - ``False``. + - **navigation_with_keys** (true or false): Allow navigating + with the following keyboard shortcuts: + + - :kbd:`Left arrow`: previous page + - :kbd:`Right arrow`: next page + + Defaults to ``False``. + + - **enable_search_shortcuts** (true or false): Allow jumping to the search box + with :kbd:`/` and allow removal of search highlighting with :kbd:`Esc`. + + Defaults to ``True``. - **globaltoc_collapse** (true or false): Only expand subsections of the current document in ``globaltoc.html`` |