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

[FEATURE] Shortcuts #77

Open
mellobacon opened this issue Jul 3, 2023 · 2 comments
Open

[FEATURE] Shortcuts #77

mellobacon opened this issue Jul 3, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@mellobacon
Copy link
Owner

Is your feature request related to a problem? Please describe.
There are no working shortcuts except for the default document ones (copy, paste etc)

Describe the solution you'd like
Add shortcuts for each menu item in the header and context menus where applicable

Additional context
Tauri has an api called global shortcuts. This works but the issue is because its global it works even when the window is minimized and also blocks shortcuts for other apps. Need to find a workaround for this or a custom implementation

@mellobacon mellobacon added the enhancement New feature or request label Jul 3, 2023
@oliverbooth
Copy link

oliverbooth commented Jul 11, 2023

Some things to keep in mind:

Menus should be accessible using Alt+<key>, where the key in question is whichever is designated as the activation key for the menu in question. Holding Alt in any desktop app should underline one unique letter.

Example from VS Code:
image

This hints that using the shortcut Alt+F will activate the File menu. If Alt is held while a menu is open thereafter, the options in that menu should also have uniquely underlined letters. For example, the X in Exit. This means you can exit the app by using Alt+F, followed by the X key.
image

@mellobacon
Copy link
Owner Author

mellobacon commented Jul 13, 2023

Some things to keep in mind:

Menus should be accessible using Alt+, where the key in question is whichever is designated as the activation key for the menu in question. Holding Alt in any desktop app should underline one unique letter.

Example from VS Code: image

This hints that using the shortcut Alt+F will activate the File menu. If Alt is held while a menu is open thereafter, the options in that menu should also have uniquely underlined letters. For example, the X in Exit. This means you can exit the app by using Alt+F, followed by the X key. image

@oliverbooth Oh this is a good point. I haven't done keyboard navigation just yet. This will come soon though

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