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

Windows modal warning sound is heard whenever Tauri app starts, upon first click into app window #11233

Open
Boscop opened this issue Oct 5, 2024 · 4 comments
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Boscop
Copy link

Boscop commented Oct 5, 2024

Follow-up to #1891
This is still an issue for me, on Windows 11:
The Windows modal warning sound is heard whenever Tauri app starts, upon the first click into the app window.
This is slightly annoying because it draws attention to it and makes the user think "something is wrong" (even just a little, because if a sound gets played, it should be for a reason, otherwise there's no need to divert the user's attention).

Steps to reproduce:

PS D:\dev\proj> cargo create-tauri-app
✔ Project name · tauri-leptos-app
✔ Identifier · com.tauri-leptos-app.app
✔ Choose which language to use for your frontend · Rust - (cargo)
✔ Choose your UI template · Leptos - (https://leptos.dev/)

Template created! To get started run:
  cd tauri-leptos-app
  cargo tauri android init

For Desktop development, run:
  cargo tauri dev

For Android development, run:
  cargo tauri android dev

PS D:\dev\proj> cd .\tauri-leptos-app\
PS D:\dev\proj\tauri-leptos-app> cargo tauri dev
  • The app window opens
  • Now click anywhere into the app window
  • The Windows modal warning sound gets played
    (Not sure what the right name for this sound is, it's the sound you usually hear when you click outside of a modal dialog, to make you realize that it wants you to interact with the modal dialog instead of anything behind it.)

Even though this sound is only heard on the first click into the app window after the app starts, it's still slightly annoying and an unnecessary drain on the user's attention.


Note that this also happens in release builds, e.g. with cargo tauri build and then running .\target\release\tauri-leptos-app.exe.

@Boscop Boscop changed the title Windows modal warning sound is heard whenever Tauri app starts Windows modal warning sound is heard whenever Tauri app starts, upon first click into app window Oct 5, 2024
@FabianLars
Copy link
Member

This may sound super random but are you using a rare-iah or custom keyboard input layout? I've also had this problem but with Electron apps (and iirc Firefox too but not Tauri?) back when I used the eurkey layout.

@FabianLars FabianLars added type: bug platform: Windows status: needs triage This issue needs to triage, applied to new issues labels Oct 6, 2024
@Boscop
Copy link
Author

Boscop commented Oct 7, 2024

@FabianLars I'm using EurKey. I don't think it's rare, it's even included in Linux, but I'm using it on Windows :)
Why would that be a problem / cause this issue? 🤔

Btw, I don't have this issue with Electron apps like Slack or Discord or VSCode.

@FabianLars
Copy link
Member

I have no idea why it's an issue but I dropped eurkey in favor of a diy layout (which funnily enough had the same issue on the first try) with minimal changes (I really just needed äöü with an US keyboard).

iirc I wasn't the only one with this issue (reddit?) and pretty sure it only happened on Windows.
What's weird is that the apps/frameworks are different for you and me. Or maybe it changed with a Windows update after I switched idk 🤔

Anyway, I couldn't figure out the issue back then and still have no clue so I hope someone else does have an idea.

@FabianLars
Copy link
Member

Oh btw, just to make sure it's actually related, can you try it with a standard layout? It may be pure coincidence that you're also using eurkey, especially since only tauri apps are affected on your end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows 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