I'm working with an ancient platform emulator, so sometimes I need to press Numpad Enter
, but my notebook keyboard has no options for doing that. Is is possible to emulate Numpad Enter
key somehow? I don't mind if the solution is clumsy.
You can remap the keyboard using xmodmap. For example, to turn F12 into numpad enter, use this command:
xmodmap -e 'keycode 96 = KP_Enter'
You can find out the keycode of keys by starting xev
and pressing them. The list of possible keysym values can be found in keysymdef.h. Omit the XK_
prefix. The numpad keys start with XK_KP_
.