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] Custom window menu disables default shortcuts #7428

Closed
juancarloselorriaga opened this issue Jul 16, 2023 · 1 comment
Closed

[bug] Custom window menu disables default shortcuts #7428

juancarloselorriaga opened this issue Jul 16, 2023 · 1 comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@juancarloselorriaga
Copy link

Describe the bug

Custom window menu disables Cmd + C, Cmd + V, Cmd + A in NextJS app
imagen

Reproduction

I haven't tried this on Windows or Linux, this is only Mac (that I know of)

  1. Create a Tauri app with NextJS
  2. Add a menu, it could be a new empty menu or with items.
  3. Add an input HTML element to the NextJS app
  4. Focus the input and write some text. Try the usual commands to copy, paste or select all.
  5. They won't work.

Expected behavior

Expected behaviour of an input and a keyboard interaction,

Platform and versions

[✔] Environment
    - OS: Mac OS 13.2.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.71.0-nightly (8bdcc62cb 2023-04-20)
    ✔ Cargo: 1.71.0-nightly (d0a4cbcee 2023-04-16)
    ✔ rustup: 1.25.2 (17db695f1 2023-02-01)
    ✔ Rust toolchain: nightly-aarch64-apple-darwin (default)
    - node: 16.14.2
    - yarn: 1.22.10
    - npm: 8.5.0

[-] Packages
    - tauri [RUST]: 1.4.1
    - tauri-build [RUST]: 1.4.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.1
    - @tauri-apps/api [NPM]: 1.4.0
    - @tauri-apps/cli [NPM]: 1.4.0

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../out
    - devPath: http://localhost:3000/
    - framework: React (Next.js)
    - bundler: Webpack

Stack trace

No response

Additional context

By just removing .menu(menu) from the Tauri builder it works as expected.

@juancarloselorriaga juancarloselorriaga added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jul 16, 2023
@FabianLars
Copy link
Member

Duplicate of #2397 (and a few others). Basically on macOS these shortcuts like these require the respective menu items which is why tauri adds a default one on macos.

@FabianLars FabianLars changed the title [bug] [bug] Custom window menu disables default shortcuts Jul 16, 2023
@FabianLars FabianLars closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2023
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

2 participants