tobsef
06/16/2020, 10:21 PMstage.onKeyDown {
log.debug { "Pressed key: $it.key" }
}
| It's always N1
for Numpad and normal numbers
But it should also return KP_1
.
This is the behavior if numlock is enabled. If it's disabled, the numpad keys are mapped to the arrows DOWN, UP, LEFT & RIGHTDeactivated User
06/17/2020, 7:08 PMtobsef
06/17/2020, 11:08 PMonKeyDown
action:
when (key) {
Key.N1 -> println("Keyboard 1 & Numpad 1")
}
when (key) {
Key.NUMPAD1 -> println("Keyboard 1 & Numpad 1")
}
when (key) {
Key.KP_1 -> println("No Keyboard & No Numpad")
}