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

Error sound being played when pressing keys on macOS #566

Closed
martinet101 opened this issue Jul 8, 2020 · 6 comments
Closed

Error sound being played when pressing keys on macOS #566

martinet101 opened this issue Jul 8, 2020 · 6 comments

Comments

@martinet101
Copy link

martinet101 commented Jul 8, 2020

Hi, i was creating a calculator with windows, and it was working without any problems. But then, when I tried to run it on macOS, when I press any key (My js code accepts keyboard capture), it works, but it plays classical "Funk" sound that is played when you are trying to do something not allowed

The sound is this one: https://www.youtube.com/watch?v=8rz44o_gGpE

I'm using Python 3.7.6
on macOS 10.15.5
pywebview 3.2

@r0x0r
Copy link
Owner

r0x0r commented Jul 12, 2020

No idea.
It could be something with your code. A minimal example would help.

@martinet101
Copy link
Author

martinet101 commented Jul 13, 2020

@LTSENG01
Copy link

LTSENG01 commented Jul 31, 2020

I'm having a similar issue where I'm trying to detect a button press (Enter key) using JS. It plays the system "Funk" sound. It is not within an input field or form.

$("#id").keyup((e) => {
    if (e.key === "Enter") {
        console.log("Enter pressed.");
    }
});

--
Python 3.8.3
macOS 10.15.6
pywebview 3.3.2

@r0x0r
Copy link
Owner

r0x0r commented Aug 3, 2020

@LTSENG01
Copy link

LTSENG01 commented Aug 4, 2020

I copied the change to my installation of the library, and it does work. Thanks!

@r0x0r
Copy link
Owner

r0x0r commented Aug 8, 2020

Released in 3.3.3

@r0x0r r0x0r closed this as completed Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants