How do I make the keypad Enter key work?
Andrew Henderson
I'm running Bionic Beaver 18.04 LTS on a Macbook Pro (I think it's a Macbook11,4).
I recently got a Logitech G413 Silver keyboard. Everything just works, even the Media keys... except the keypad ENTER key. I've been searching around and reading man pages and haven't yet found an answer that's helped me.
Several answers refer to using xmodmap to do this, but newer answers indicate that this isn't used anymore, and that instead I should edit a file found in /usr/share/X11/xkb/symbols/. The problem with that suggestion, is that my input method on the system bar is named en1 (for the laptop keyboard) and en2 (for the Logitech G413), and the symbols/ directory does not contain anything resembling en, anywhere. I tried:
MacBookPro:~$ ls -R /usr/share/X11/xkb/symbols/ | grep -i en
parensFollowing some more searching, I happened across the idea that perhaps editing the file called pc in that folder might work, as there seems to be some hierarchical configuration loading going on. I'm left guessing as to what exactly that means.
Someone suggested I run xev, hit they key in question and post the result. Here it is:
KeyPress event, serial 37, synthetic NO, window 0x4600001, root 0x16e, subw 0x0, time 4580576, (1026,1334), root:(1076,1499), state 0x2010, keycode 104 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XKeysymToKeycode returns keycode: 92 XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4600001, root 0x16e, subw 0x0, time 4580669, (1026,1334), root:(1076,1499), state 0x2090, keycode 104 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XKeysymToKeycode returns keycode: 92 XLookupString gives 0 bytes: XFilterEvent returns: FalseWith help from @PRATAP:
- The output from xev means that keycode 104 is mapped to the keysm ISO_Level3_Shift
- Changing this assignment is easily done by running xmodmap -e "keycode 104 = KP_Enter"
- This xmodmap command sets the key association only until logging out
- So using Ubuntu's default "startup applications" interface, I added the command
sleep 10 && xmodmap -e "keycode 104 = KP_Enter"to run each time I log in. At first this seems to work, but it is very unstable. It almost seems like every time I want to use the keypad enter key, I have to first open a terminal and runxmodmap - Recently I tried plugging a cheap Genius keyboard into a freshly installed Ubuntu 18.04 LTS machine, and noted that the keypad enter worked out of the box.
So, my question: How do I get Keypad Enter to work?
6 Reset to default