Certain keys on the Swedish (se) and Danish (dk) keyboards don't work as expected with the xkb keymaps for those layouts. The problem arises when one wants to type characters with accents (^"~'`) and has to use dead keys for this. It doesn't matter if dead_keys is enabled, the problem is in the keymap. The problem may affect more than the Swedish and Danish layout. I use the Swedish layout myself and the problem with the Danish layout was reported by a Danish user, Birger Langkjer, to the Redhat I18N mailing list. It is probably a safe bet that this problem also effects the Norwegian (no) layout, for example, and that the solution should be similar to those below. The solutions: Swedish layout File: /usr/X11R6/lib/X11/xkb/symbols/se The lines: key <AE12> { [ acute, grave ] }; key <AD12> { [ diaeresis, asciicircum ] }; should be changed to: key <AE12> { [ dead_acute, dead_grave ] }; key <AD12> { [ dead_diaeresis, dead_circumflex ] }; Danish layout: File: /usr/X11R6/lib/X11/xkb/symbols/dk The lines: key <AE12> { [ acute, grave ], [ bar, dead_ogonek ] }; key <AD12> { [ diaeresis, asciicircum ], [ asciitilde, dead_macron ] }; should be changed to: key <AE12> { [ dead_acute, dead_grave ], [ bar, dead_ogonek ] }; key <AD12> { [ dead_diaeresis, dead_circumflex ], [ dead_tilde, dead_macron ] };
dk seems to have been fixed for 3.3.6. I fixed the swedish and norwegian ones.
The Finnish keyboard map may also be affected by this bug, as it is almost(?) identical to the Swedish one. Sorry for not discovering this the first time.
I'll patch that too.
The solution above was taken from a danish HOWTO somewhere, however there's a more updated solution at: http://anubis.dkuug.dk/keld/xkbd_latin1-1.5.tgz (or http://www.dkuug.dk/keld) I recommend using this fix instead since a lot of thought has gone into it.
Closing old reports.