How to specify which keys CapsLock affects?

Posted by Seattle Jörg on Ask Ubuntu See other posts from Ask Ubuntu or by Seattle Jörg
Published on 2011-02-18T20:47:50Z Indexed on 2011/02/18 23:34 UTC
Read the original article Hit count: 316

Filed under:
|

Using Maverick, I am not able to get the CapsLock behaviour I want: I would like it to affect essentially the alphabetical, numerical, and punctuation keys, i.e. all the keys that print something (as opposed to, say, the error keys), but only them.

To illuminate this with an example: when writing code that uses % as the symbol for a comment, I want to be able to position the cursor at the start of a range of lines I want to comment out, then hit CapsLock, then iteratively hit the 5 key (using QWERTZ, Shift+5 gives %) and the arrow down key, so that I can quickly place a % at the start of the lines.

Ubuntu in default configuration takes CapsLock literally, so that it affects only alphabetic keys. Under Preferences/Keyboard/Layout/Options I can make it act as a pressed Shift, but then the action of the arrow keys is to select text. All the other options available are equivalent to one of these two in my case.

Is it possible to somehow get this behaviour? This is standard in Windows.

© Ask Ubuntu or respective owner

Related posts about keyboard-layout

Related posts about capslock