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

Ifalt+1 produces a key that's valid in TIC-80, it gets inserted in the code editor instead of executing the shortcut #2661

Closed
aliceisjustplaying opened this issue Aug 25, 2024 · 3 comments · Fixed by #2665
Labels
input: keyboard Issues with keyboard controls library: sdl2 Issues related to SDL2. platform: linux For issues affecting TIC80 on Linux

Comments

@aliceisjustplaying
Copy link
Collaborator

Per the title, for some reason the alt+1 shortcut will insert 1 but only under Linux.

Found while working on #2657.

@aliceisjustplaying aliceisjustplaying added platform: linux For issues affecting TIC80 on Linux input: keyboard Issues with keyboard controls library: sdl2 Issues related to SDL2. labels Aug 25, 2024
@aliceisjustplaying aliceisjustplaying changed the title Under Linux, when in the editor, alt+1 inserts 1 Ifalt+1 produces a key that's valid in TIC-80, it gets inserted in the code editor instead of executing the shortcut Aug 26, 2024
@aliceisjustplaying
Copy link
Collaborator Author

The Linux thing was a red herring: this happens with every keyboard layout where alt+1 produces a valid key.

On macOS with the default US keyboard, alt+1 produces ¡, which is not valid in TIC-80. On Windows 11 with the default US keyboard, alt+1 does nothing. Likely the reason this was not caught before.

@aliceisjustplaying
Copy link
Collaborator Author

aliceisjustplaying commented Aug 26, 2024

This is a problem specifically when switching away the editor and switching back.

@Miguel-hrvs
Copy link
Contributor

Is very similar to the f1 bookmark problem that was fixed recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input: keyboard Issues with keyboard controls library: sdl2 Issues related to SDL2. platform: linux For issues affecting TIC80 on Linux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants