How to disable magic accent character keys

Asked by ChrisDodd

When I upgraded to Ubuntu 8.10, it enabled something that breaks the ´/¨ and `/~ keys on my keyboard -- I have to hit the key twice to get it to actually work and the first one is ignored.

After searching for some way to fix this, I noticed that if I typed ´ followed by a, I would get an a with an accent over it. While cute, this is not useful to me, but it indicates that somehow some sort of internation character recognition has been turned on and is intercepting my keystrokes to do this.

How do I turn it off?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
ChrisDodd
Solved:
Last query:
Last reply:
Revision history for this message
Andre Mangan (kyphi) said :
#1

Have a look in System, Preferences, Keyboard Shortcuts, and see if "/" has an action associated with it. If it has, you can edit it.
Normally, to get special characters, you need to set up a compose key, so you can also check in Preferences, Keyboard, Layouts, Keyboard Layout Options, Compose key position to see if "/" has been given a special action.
Also check if Compiz is interfering here - it also uses its own compose keys.

Revision history for this message
ChrisDodd (cdodd) said :
#2

Thereś no Ṕrefernces' under system on my machine -- the closest is settings -> settings manager -> keyboard, which has a shortcuts tab. Thereś no association listed for any of the quote chars -- all the shortcuts are Alt+something or Control+Alt+something

Revision history for this message
Andre Mangan (kyphi) said :
#3

Then the only other thing I can suggest is to check your Language Support settings (System, Administration, Language Support) and see if your default language is correct and that it has a mark in the box next to it on the list.
I have "Enable support to enter complex characters" ticked - you could try it without.

Revision history for this message
ChrisDodd (cdodd) said :
#4

It wasn´t ticked, but I tried it both ways anyways, but it seem to have no effect. (Default language is English(US))

Revision history for this message
Andre Mangan (kyphi) said :
#5

I do not know a definitive answer to this problem.

If faced with the same situation I would re-install some packages from Synaptic starting with the fonts on the assumption that a package has become corrupted during the update.

Revision history for this message
ChrisDodd (cdodd) said :
#6

Ok, after lots of searching and fiddling, I figured out a way to fix this, thou not why it happens in the first place. What I did was to create a ~/.xmodmaprc file containing:

keycode 49 = 0x60 0x7e
keycode 48 = 0x27 0x22

...and put a line in my ~/.xsessionrc file to use it:

xmodmap .xmodmaprc

That hardcodes the two misbehaving keys to generate the correct characters, but is specific to my keyboard layout; someone with a different keyboard would probably need something slightly different.