Skip to content

Are there any build-in keyboard shortcuts on tauri? #3724

Answered by percy507
percy507 asked this question in Q&A
Discussion options

You must be logged in to vote

After some research, I find the answer.

There is no build-in shortcuts.

If you want to add some basic shortcuts(eg: copy, paste, cut), you need add a menu for your app.

Related issue: Copy/Paste and Other Keyboard Shortcuts Do Not Work on MacOS

let my_app_menu = Menu::new()
    .add_native_item(MenuItem::Copy)
    .add_native_item(MenuItem::Cut)
    .add_native_item(MenuItem::Paste);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@FabianLars
Comment options

@percy507
Comment options

Answer selected by FabianLars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants