flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.08k stars 427 forks source link

macOS dings when key is pressed #1282

Open FeodorFitsner opened 1 year ago

FeodorFitsner commented 1 year ago

Problem: pressing keys produces "ding" sound on macOS. Repro code: https://github.com/flet-dev/examples/blob/main/python/controls/page/keyboard-events.py Possible solution: https://github.com/flutter/flutter/issues/74287#issuecomment-1091883884

ndonkoHenri commented 1 year ago

Such an old flutter bug popping up just now?

nikhgupta commented 1 year ago

@ndonkoHenri I reached out in the Discord channel. I am creating an app using Flet and found that keyboard shortcuts work but produce a ding sound each time regardless of whether that keybinding is defined or not.

I can add a PR if I get insight into where to make these changes. Based on this code, I believe we need to add a similar FocusNode in this file?

Ref: https://github.com/flutter/flutter/issues/74287

FeodorFitsner commented 1 year ago

Re: ding on macOS - honestly, I thought it's just me having that annoying sound 😂