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

Input api issues #328

Open
MichaelMackus opened this issue Jan 14, 2023 · 0 comments
Open

Input api issues #328

MichaelMackus opened this issue Jan 14, 2023 · 0 comments

Comments

@MichaelMackus
Copy link

MichaelMackus commented Jan 14, 2023

I had a few issues using bracket-lib dealing with the Input API. Mostly because I assumed ctx.key represents all/most of the ascii character set at least, but it seems a bit lacking. For example when I input things like ">" and "<" (common up-stair/down-stair keys) the ctx.key never gets populated by anything. I think adding something that corresponds to the ascii character would help here - for example ctx.ch which returns a char. This would also be helpful for text input.

Just an idea. I eventually implemented input using INPUT.lock() which seemed to work much better, but took a bit more boilerplate.

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

1 participant