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

Cannot use {, [, ], } in code editor. Includes temporary autohotkey fix. #12

Open
rHermes opened this issue Mar 14, 2017 · 4 comments
Open

Comments

@rHermes
Copy link

rHermes commented Mar 14, 2017

As a norwegian user, begin unable to use the mentioned keys is something that pops up every so often, I'm looking at you repl.it >:[. It most likley has to do with the fact that we use AltGr for those symbols, but I'm not 100% sure if thats the only issue. I normally just ignore the program that has such problems, but this games seems so awesome, I took the time to write a short AHK script that fixes it. The script kan be found here.

This is obviously only a temporary solution, but I just wanted to share it incase there was any other
users out there which just couldn't wait to play your awesome game!

@linleyh
Copy link
Owner

linleyh commented Mar 14, 2017

This may be a problem with Allegro, as the code editor just accepts the unicode values that Allegro gives it (there is a key remapping function in init.txt, but it only works for in-game input as text input would be much more complicated to remap).

I'll include the AHK script in a /misc directory and add a note to the key remapping section of init.txt. Thanks for the script!

@rHermes
Copy link
Author

rHermes commented Mar 14, 2017

Glad to hear that you could use the script! I've only tested it on windows so far, the #IfWinActive matcher might have to be changed in the future if the executable name changes, as that is what it matches right now.

Once again, thank you so much for such an enjoyable game!

@DaRasch
Copy link

DaRasch commented Mar 16, 2017

I noticed a similar Problem, where the numpad works as if numlock was enabled and disabled at the same time. This means pressing 7 on the numpad will jump to the start of the line (its function if numlock is disabled) and then write a 7.

For now I use an exgame editor, which works just fine, except for syntax highlighting. On that note, could you add an option to auto-reload the open file, if it changed on disk, or at least give the reload button a hotkey?

Awesome game btw.

@linleyh
Copy link
Owner

linleyh commented Mar 17, 2017

I noticed a similar Problem, where the numpad works as if numlock was enabled and disabled at the same time. This means pressing 7 on the numpad will jump to the start of the line (its function if numlock is disabled) and then write a 7.

I've just made some changes that should fix this.

On that note, could you add an option to auto-reload the open file, if it changed on disk, or at least give the reload button a hotkey?

Auto-reload sounds tricky to implement, but I can add a shortcut; there's already a compile-time option to do this (with ctrl-R), but I left it off to avoid having a single keypress that instantly overwrites a whole file. It's probably better to turn it on though.

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