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.

I have an Apple keyboard where the right command key (Super_R) is mapped to the right Alt key (ISO_Level3_Shift) with xmodmap:

$ cat ~/.Xmodmap 
clear mod4
keysym Super_R = ISO_Level3_Shift

In some applications though, like Firefox and Thunderbird, the right Command and Alt keys are disabled altogether. Is my .Xmodmap invalid?

I have also tried redefining keycodes in section xkb_keycodes of a dump from xkbcomp and then loading the keymap with xkbcomp but still no luck with Firefox and Thunderbird. Any clues?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

This neat command solves the problem:

setxkbmap -option lv3:rwin_switch
share|improve this answer

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.