How to use Caps Lock as Enter in 14.04?

Solution 1:

First You can search for replacements keycodes in your case via following command in terminal:

$ xmodmap -pke | grep Caps
keycode  66 = Caps_Lock NoSymbol Caps_Lock

$ xmodmap -pke | grep Enter
keycode 104 = KP_Enter NoSymbol KP_Enter

You can get all keycodes according to keys by command xmodmap -pke.

So, Run following command (to get Caps-Lock Work as Enter Key):

xmodmap -e "keycode 66 = KP_Enter"

(Then you can set/assign suitable key to keycode by command xmodmap -e)