Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Just installing Ubuntu for the first time, glad to ditch Win 7. I have a KVM switch and also a Mac, hence I'm using a Mac keyboard (the full size alu one)

Main problem is the Enter key on the keypad doesn't work. I checked the keyboard layout (set to 'English UK Macintosh')... inspecting the layout the Enter key is mapped to something called 'Level' - WTF is 'Level'?

Everything else about the keyboard works great ie the £ $ # @ " are all perfect, volume control works as expected... why this weird key mapping on the Enter key?

More importantly... how do I change it to work as an Enter key ?

share|improve this question
    
ok, I found that this will fix it temporarily: sudo /usr/bin/xmodmap -e 'keycode 104 = KP_Enter' but after I logout and login the old mapping is back. Anyone know how to make this permanent? More to the point, could some Ubuntu dev just fix the source keyboard mapping...! –  Anentropic Jun 10 '12 at 22:51

1 Answer 1

Ok the following seems to have fixed it permanently for me:

> /usr/bin/xmodmap -e 'keycode 104 = KP_Enter'
> xmodmap -pke > ~/.Xmodmap

I shouldn't have to do this, someone please fix the English (UK, Macintosh) keyboard layout (for full-size aluminium Mac keyboard) that comes with Ubuntu 12 and save others this annoyance...

share|improve this answer
    
If you want some developer to fix the bug, you will need to open a bug report, see: askubuntu.com/questions/5121/how-do-i-report-a-bug –  Javier Rivera Jun 11 '12 at 7:10
    
Have filed the bug, thanks. –  Anentropic Jun 11 '12 at 11:55
    
I'm wondering if KP_Enter is actually what you want--Return may be a more useful key code; I recently have had a problem with the fact that my enter key maps to KP_Enter when numlock is on and Return when numlock is off, and KP_Enter doesn't work in all situations... –  TJ Ellis Jan 12 '13 at 15:34
    
Enter and Return have different meanings for some programs (eg Sublime Text 2) so I particularly needed an Enter key –  Anentropic Jan 13 '13 at 16:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.