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.

- 3,914
- 7
- 48
- 64
2 Answers
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_
.

- 8,359
- 2
- 29
- 41
I would think that your laptop has 'fn' key and little blue numbers on keys; 7,8,9,u,i,o,j,k,l and m. these are your numeric 'key pad', But if it doesn't...
In KDE > YaST2 > there are several on screen keyboards typically used for 'other' languages and Accessibility situation. Kvkbd seems to be installed on my openSuSE / KDE systems by 'default' as I did not specifically install it. On the right edge of Kvkbd, there is a << arrow looking thing that will expand it and show the numeric keypad. screenshot: of kvkbd:
Kicker > (in search, type) keyboard and you should see a list generate of all the keyboard related apps you have installed. If not, back to above, YaST2 and install one.

- 4,980
- 6
- 27
- 49

- 39
- 1
- 9
-
Tried, it sends usual `Enter`, not `Numpad Enter`. – Andrey Moiseev Apr 18 '13 at 13:03