tauri-apps/tauri

I hear the Windows modal warning sound whenever I type the first char in a text field after starting the app

Closed this issue · 3 comments

Describe the bug
Whenever I start the todomvc app.exe and type the first char in the text input field, I get a Windows sound.

To Reproduce
Steps to reproduce the behavior:

  1. Build todomvc app.exe
  2. Double click on app.exe, wait for the webview to load
  3. Click in text input field to place the cursor in it
  4. Type a char, e.g. a, or even a key like Alt or Ctrl
  5. Hear the windows "dong" sound. It's the same sound that happens in other windows apps when you have a modal window and click outside of it (not sure what the official name of that sound is).
    Note: If you pressed a key associated with an insertable char, the char is still inserted, but it's annoying to always get this warning sound. But the sound also happens with Ctrl or Alt. But only if the cursor was previously placed in the text input field! If you just start the app and press a or Ctrl or Alt without having placed the cursor in the text input field first, you get no sound. But if you then place the cursor into the text field and press a key, then you get the sound.
    (So the sound is not caused just by using the web view but by having the text field in it.)

Expected behavior
No sound is heard because there is nothing the user did wrong. (There is no modal window either.)

Screenshots
Obviously one can't make a screenshot of a sound, but it happens in this situation after app start if I type the first char (Note that the cursor is already placed in the text field, so there is no reason to give an error sound):

image

Platform:
OS: Win 8.1, but maybe it also happens on Win 10.

Additional context
It's the same sound that happens in other windows apps when you have a modal window and click outside of it.
E.g. in this situation if you click on the "Sound" window, you get the same sound but with the additional behavior that the modal window's border flashes a couple times between active and inactive color, to signify that you should interact with the modal window:

image

In the Tauri case, the border doesn't flash, I only get that sound. But every time at the first char insertion after app start. If I then delete the inserted char with backspace and type it again, I don't get any sound.


Btw, I uploaded the app.exe here.

I can't reproduce this on Windows 10. Does it happen on any other example app?

Closing due to inactivity. Please open another issue if you can help us reproduce it.

@lucasfernog Sorry for the long silence, I just came back to trying Tauri again. This is still an issue for me, on Windows 11.
But now the nature of this behavior is slightly different:
The sound appears on the first click into the app window.
I opened a new issue with reproduction steps: #11233