-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
MacOS: Keypress on non-input element triggers unsupported key feedback sound. #2626
Comments
+1, I'm also seeing this. From a cursory googling, it seems like the solution involves changes to the It looks like the low-level MacOS window setup like this is actually done in this file in the tauri-apps/tao sibling repo, so it's probably worth cross-posting this issue over there. [0]: StackOverflow Prevent 'not allowed' beep after keystroke in NSView |
+1, I also facing this. |
/upstream tauri-apps/wry |
Will be fixed on the next release. Thanks to @KusStar for pointing me to the solution. The problem is that |
Reopen this because we found the input will no longer work if we don't actually handle all events. |
+1, I also facing this. |
Sorry to bump this. I understand setting the NSView as first responder did not work, but what about the |
Is there any "user land" workaround available for this issue until it gets fixed? |
Stop default on the JS side:
|
This feels very wrong to have to fix it in JS. We should manage this in tao/wry. Can we look into this again @lucasfernog @wusyong |
Worked for me. |
Also running into this issue for a music player app that's tied to various keyboard events. I can somewhat hack it by using a hidden input field that catches the input, but it's fairly unreliable and would way rather have the ability to turn off the alert sound all together. Any updates on a fix in tao/wry? |
Yeah, I am also relying on the JS hack that I would not want to do long term? Hoping for an upstream push here? |
Workaround does unfortunately not work for me :/ |
I tested with winit 0.27 with |
I'm also facing the same situation. |
How do we implement this @amrbashir || @lucasfernog |
@ParthJadhav We fixed this in tauri-apps/tao#614 |
Hey @wusyong , Fixed in latest release 1.2.0 🚀 |
I am still getting the unsupported key feedback sound. [build-dependencies]
tauri-build = { version = "1.2.0", features = ["config-toml"] }
[dependencies]
tauri = { version = "1.2.0", features = ["fs-all", "os-all", "shell-open"] } |
This is a regression from tauri-apps/tao#623. I'll look into it |
Describe the bug
When a keypress event occurs on a non-content editable DOM element, the unsupported key feedback sound.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No unsupported key feedback sound effect should play.
Screenshots
Not really applicable
Platform and Versions (required):
Additional context
The error can be stopped with e.preventDefault(), but this will block input interaction.
Tauri Conf:
Stack Trace
Not applicable.
The text was updated successfully, but these errors were encountered: