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

[bug] Menu item accellerator/keybord-shortcut Some("Command++") does not work #12945

Open
Simon-Laux opened this issue Mar 10, 2025 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Simon-Laux
Copy link
Contributor

Simon-Laux commented Mar 10, 2025

Describe the bug

Menu item accellerator/keybord-shortcut Some("Command++") does not work and is not shown:

Image

I suspect the usage of + as separator breaks this use case. Is there an alias that I don't know of that I can use here? if there is, then it should be mentioned in documentation.

Reproduction

&MenuItem::with_id(
   app,
    MenuId::new("zoom-in"),
    "Zoom In",
    true,
    if cfg!(target_os = "macos") {
        Some("Command++")
    } else {
        Some("Ctrl++")
    },
)?,
&MenuItem::with_id(
    app,
    MenuId::new("zoom-out"),
    "Zoom Out",
    true,
    if cfg!(target_os = "macos") {
        Some("Command+-")
    } else {
        Some("Ctrl+-")
    },
)?,

Expected behavior

Also a keyboard shortcut/accelerator for the zoom in option.

tauri info output

tauri: 2.3.1

rest is most likely not really relevant to this issue.

Additional context

An alternative for me could probably be to use a predefined menu item for zooming in/out - though they are not implemented yet:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant