Pressing dead keys twice

I've recently switched from Windows to Ubuntu 11.04, and a difference that bugs me a bit is, when a dead key (such as ^ or ´) is pressed twice, the behavior differs in the two OS'es.

On Windows, the first press is dead, but the second press gives you two characters. So, for instance, pressing ¨ once nets you nothing, but twice nets you ¨¨.

On Ubuntu, the first press is also dead, but the second press only nets you one character. So, pressing ¨ once nets you nothing, twice nets you ¨.

What I'd like to do is make dead keys function as on Windows, that is, pressing them twice nets you the character two times.

I do not wish to make them non-dead, as I then wouldn't be able to write for ü, for instance.

Is such a thing possible, and if so, how?


Solution 1:

You can get similar behavior with the compose key. The compose key can be set under System Settings -> Keyboard -> Layout -> Options -> Compose Key. Now, to type ü, press compose, release compose and then proceed as you would in Windows.

Edit: Misread slightly, you'd need to make the keys dead before doing this, which for me, they were by default.