The physical keys on the keyboard are mapped to key codes using xkb . Here's how I got the number keys working with java applications (like Intellij) in a Debian-derived Linux:
- Switch to root user
- cd / usr / share / X11 / xkb / symbols
- cp keyboard keyboard. original (just in case)
- Edit the keyboard and replace all occurrences of KP_Up, KP_Down, KP_Left and KP_Right using the up, down, left and right buttons, respectively
- Save
- dpkg-reconfigure xkb-data li>
- Reboot
Now the numeric keypad will emit ordinary arrows, key codes, and not a java-unrecognized, numeric keypad, arrows, key codes.
source share