I spent quite a bit of time yesterday trying to determine KeyInput constants for KEY_PAGEUP, KEY_PAGEDOWN, and KEY_PLUS (non-keypad).
I finally found that KEY_PRIOR = PU, KEY_NEXT = PD, and decided to use a different key for PLUS.
I’m guessing NEXT/PRIOR is some terminal hangover that doesn’t even apply to a modern desktop system.
Can we add these definitions?
public static final int KEY_PAGEUP = KEY_PRIOR;
public static final int KEY_PAGEDOWN = KEY_NEXT;
I’m not really sure where to find the value for KEY_PLUS short of writing a program to output it.
I think it may also be a good idea to prefix all of the number pad keys with NUMPAD so they are not confused with equivalent keys on the regular keyboard as well as for consistency, but perhaps defining them in terms of their common operation is sufficient.
-Mike
"mkienenb" wrote:
I'm not really sure where to find the value for KEY_PLUS short of writing a program to output it.
I believe the way to get the non-keypad "plus" (as things currently stand) is actually to check three keys, (LSHIFT or RSHIFT) and SUBTRACT. I've been wrong before though. :)
added the additional pgup pgdown constants, as Renanse says, there’s no binding for keys that require the shift key. It will have to be SHIFT+MINUS.
Duh.
That’s very obvious in retrospect
Yeah, shift-equals on my system, but yeah.
Thanks.
-Mike
"mkienenb" wrote:
Yeah, shift-equals on my system, but yeah.