On Fri, 8 Aug 2003, Michael Mauch wrote:

> Jorge Almeida wrote:
> 
> > What is puzzling is that xev agrees with the wanted behavior and not
> > with the actual behavior! According to xev, the key with keycode 66
> > (the one just under tab and above shift) should work as ModeSwitcher:
> > 
> > KeyRelease event, serial 27, synthetic NO, window 0x2a00001,
> >     root 0x48, subw 0x0, time 4424081, (71,695), root:(74,724),
> >     state 0x2, keycode 66 (keysym 0xff7e, Mode_switch), same_screen YES,
> >     XLookupString gives 0 bytes:  ""
> > 
> > My .bashrc has a line 
> >       xmodmap $HOME/.Xmodmap
> > , where .Xmodmap contains:
> > (...)
> > clear Lock
> > keycode 66 = Mode_switch
> > (...)
> >
> > Any idea? 
> 
> You do still have a "add modN Mode_switch (0xNN)" line there?

Hmmm... I didn't know this syntax... Anyway, I found out where the trouble 
lies (sort of). It's not a xmodmap problem, but rather a KDE/Konsole 
syndrome (I don't know whether one could call it a bug). I need to set the LC_CTYPE 
variable to pt_PT.iso88591 (so that Perl recognizes accented characters as 
letters). Since I really reject the Portuguese locale, I set that variable 
in .bashrc. Big mistake. Konsole stops recognizing accents! The workaround 
I use is to export that variable only from a Konsole window, when I need 
it. It is ugly but it works...
As to the CapsLock zombie-key, I solved it by getting rid of the choice of 
Portuguese layout in /etc/rc.conf (which would be preferable, as it would 
reflect more accurately the physical layout of my keyboard) and by adding 
Option lines to the "Input Device" section of XF86CFonfig, after trashing 
all my KDE preferences. All this does 
not explain what happened, but I'm pretty sure it's KDE's fault (to which 
I find no alternative, BTW). 

> > Or anyone knows of some good documentation about keyboard 
> > customizing?
> 
> <http://www.in-ulm.de/~mascheck/X11/xmodmap.html>

Thanks. I agree with the initial quotation already!

Thank you for your interest. Regards,
-- 
Jorge Almeida


--
[EMAIL PROTECTED] mailing list

Reply via email to