Skip to content

Commit

Permalink
Remap viewer.toggle-toc to <ctrl>t (#1316)
Browse files Browse the repository at this point in the history
`viewer.toggle-toc` is remapped to `<ctrl>t` instead of `<ctrl><alt>t`.
Many people use `<ctrl><alt>t` to bring up their terminal, so it's a
common conflict that can be avoided. `<ctrl>t` is also the shortcut for
the same action in Calibre, so readers coming from that reader have one
less new shortcut to learn.
  • Loading branch information
kekkoudesu committed May 22, 2024
1 parent 017bc46 commit 6d74a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/book-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ export const BookViewer = GObject.registerClass({
'<ctrl>f|slash': 'viewer.toggle-search',
'<ctrl>l': 'viewer.show-location',
'<ctrl>i|<alt>Return': 'viewer.show-info',
'<ctrl><alt>t': 'viewer.toggle-toc',
'<ctrl>t': 'viewer.toggle-toc',
'<ctrl><alt>a': 'viewer.toggle-annotations',
'<ctrl><alt>d': 'viewer.toggle-bookmarks',
'<ctrl>d': 'viewer.bookmark',
Expand Down

0 comments on commit 6d74a75

Please sign in to comment.