-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
onKeyPressed doesn't listen for modified (e.g. ctrl-u, alt-a, etc.) characters #104
Comments
I don't have access to anything except that which the terminal gives me. So depending on what you're expecting, it's probably not possible. See also: #57 in case it's related. I wonder if you could write a raw console app, just like a naked main function and use of |
A user on my Discord just pointed out that Mordant has rich support for raw keypresses. Taking notes here.
Mordant actually supports three implementations that apparently supply raw mode logic.
Between these three, I think JNA is the way to go. However, I'll need to investigate to see by how much the native library increases the jar size. If it's like a few MBs or less, it may be worth it just to do it. Putting the logic in a separate module doesn't seem too bad. JNA implementation for windows Still not sure how mac and linux work. Will investigate later. If I can get this working right, I think for a first pass, I would mostly keep TODO:
|
I am using kotter to make a shell and also needed alt+n ctrl+n |
Our app has a need to listen to various control-modified keys (ctrl-u, ctrl-f, ctrl-b, etc.). But:
…shows those keys are ignored.
Is there an API to listen for those keys?
The text was updated successfully, but these errors were encountered: