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

Holding down keyboard keys on MacOS brings up special character menu #3080

Open
increpare opened this issue Mar 13, 2024 · 1 comment
Open

Comments

@increpare
Copy link

increpare commented Mar 13, 2024

  • Haxe version: 4.2.5
  • Flixel version: 5.6.2
  • OpenFL version: 9.3.3-L3uoGG
  • Lime version: 8.1.2
  • Affected targets:
    MacOS 14.0 (23A344) - Apple M1 Max

Code snippet reproducing the issue:

Any project with a window will reproduce it. For instance, running the default flixel tpl -n "HelloWorld" project.

Possibly relevant settings system:
I have the "ABC - Extended" keyboard layout selected.


Observed behavior:

If I hold down certain keys on the keyboard that have variants/accents (like the A key, for instance), then a menu will appear to the top-left of the window (if in windowed mode) or screen (if fullscreen).

Bildschirmfoto 2024-03-13 um 19 46 00 Bildschirmfoto 2024-03-13 um 19 45 51

Expected behavior:

Unless I'm specifically inputting into a text field, I would not want this menu to appear. And in those cases, were it to appear, I would want it to appear in the correct location. Asking for perfect behaviour might be too much, but I would much prefer the menu never appear, rather than its current behaviour.


It is also present in other haxe games, like Dead Cells, so there must be some similarities in window instantiation/app settings.
Bildschirmfoto 2024-03-13 um 20 00 27

(looking for games/apps that don't exhibit this behaviour, uh, it's not haxe I think, but VVVVVV and Aseprite don't)

Possible links to people possibly struggling with the same problem that I stumbled across while I was trying to solve it myself (sometimes it manifests as people reporting that key-repeats aren't getting sent):

https://apple.stackexchange.com/questions/332769/macos-disable-popup-showing-accented-characters-when-holding-down-a-key
https://www.reddit.com/r/runescape/comments/atudk0/macbook_whenever_i_press_and_hold_a_key_an_accent/
bus-stop/Termination#9
https://fsunuc.physics.fsu.edu/git/gwm17/glfw/commit/17a15a20f28ed95e0e69d403687416c023c77e7e
https://stackoverflow.com/questions/76546729/why-are-certain-repeated-keys-ignored-by-interpretkeyevents-in-nsresponder
https://fsunuc.physics.fsu.edu/git/gwm17/glfw/commit/17a15a20f28ed95e0e69d403687416c023c77e7e
smolck/uivonim#106 (comment)

@Geokureli
Copy link
Member

I made a copy of this issue In the OpenFL repo, though it's more likely a Lime issue than openfl, at least this will get more eyes on it. Let's continue the discussion there

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

2 participants