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

Keyboard shortcut alt-5 conflicts with { character on macOS with a French keyboard #2520

Open
Ecco opened this issue Apr 21, 2024 · 1 comment
Assignees
Labels
bug editor: code Issues related to code editor input: keyboard Issues with keyboard controls keyboard-layouts

Comments

@Ecco
Copy link

Ecco commented Apr 21, 2024

TIC-80 is currently unusable for Mac users in France. Indeed, to type a brace character { on a French Mac keyboard you're supposed to hit Alt-(.

However, when a user with a French Mac keyboard layout presses Alt-(, TIC-80 switches to the Music editor instead of yielding a { character.

Note: On those keyboards, the ( key is shared with the 5 key. To get a 5 you're supposed to press Shift-(. I guess this somehow trips TIC-80 that confuses Alt-( with the Alt-5 shortcut (that, on this keyboard, should therefore be Alt-Shift-(.

French Mac Keyboard and parenthesis key

I tested this on the current macOS release as well as on the latest HTML build of the main branch. The bug is present in both builds.

@aliceisjustplaying
Copy link
Collaborator

There is a way to detect they keyboard layout in SDL2: https://gist.github.com/g2p/8597984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug editor: code Issues related to code editor input: keyboard Issues with keyboard controls keyboard-layouts
Projects
None yet
Development

No branches or pull requests

2 participants