Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List keyboard shortcuts #1310

Open
johnfactotum opened this issue May 1, 2024 Discussed in #1233 · 2 comments
Open

List keyboard shortcuts #1310

johnfactotum opened this issue May 1, 2024 Discussed in #1233 · 2 comments
Labels
enhancement New feature or request

Comments

@johnfactotum
Copy link
Owner

Discussed in #1233

Originally posted by gotmax23 January 19, 2024
There used to be a menu to list all the available keyboard shortcuts in Foliate v2. Is this still there in the GTK 4 rewrite? I cannot seem to find it. Are the keyboard shortcuts listed somewhere else?

@amano-kenji
Copy link

What are the existing keyboard shortcuts? Ctrl+F used to launch a text finder, but it doesn't do anything now.

@johnfactotum
Copy link
Owner Author

What are the existing keyboard shortcuts?

See

foliate/src/book-viewer.js

Lines 677 to 706 in 479e0d5

const shortcuts = {
'F9': 'viewer.toggle-sidebar',
'<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><alt>a': 'viewer.toggle-annotations',
'<ctrl><alt>d': 'viewer.toggle-bookmarks',
'<ctrl>d': 'viewer.bookmark',
'<alt>comma': 'viewer.preferences',
'<ctrl><shift>g': 'search.prev',
'<ctrl>g': 'search.next',
'<ctrl>c': 'selection.copy',
'<ctrl>f': 'selection.search',
'F12': 'view.inspector',
'<ctrl>m': 'view.scrolled',
'<ctrl>r': 'view.reload',
'plus|equal|KP_Add|KP_Equal|<ctrl>plus|<ctrl>equal|<ctrl>KP_Add|<ctrl>KP_Equal': 'view.zoom-in',
'minus|KP_Subtract|<ctrl>minus|<ctrl>KP_Subtract': 'view.zoom-out',
'0|1|KP_0|<ctrl>0|<ctrl>KP_0': 'view.zoom-restore',
'p|Page_Up': 'view.prev',
'n|Page_Down': 'view.next',
'k|Up': 'view.scroll-up',
'j|Down': 'view.scroll-down',
'h|Left': 'view.go-left',
'l|Right': 'view.go-right',
'<alt>Left': 'view.back',
'<alt>Right': 'view.forward',
'<ctrl>p': 'view.print',
}

Ctrl+F used to launch a text finder, but it doesn't do anything now.

See #1299.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants