Forwarding this so that there's a record that cntl-@ wouldn't work
with Qt4.
Angus
--- Begin Message ---
> --- Ursprüngliche Nachricht ---
> Von: Angus Leeming <[EMAIL PROTECTED]>
> An: "Christian Ehrlicher" <[EMAIL PROTECTED]>
> Betreff: Re: KeyEvent handling
> Datum: Mon, 4 Jul 2005 11:37:18 +0100
>
> On Monday 04 July 2005 08:57, you wrote:
> > Hello,
> >
> > Don't know if Michael already told you, but I've managed to get
> > qt3/free working with the keyhandling-code from qt4 (IME doesn't
> > work until now, but that's not that important I think). The only
> > thing which doesn't work is CTRL+SHIFT+2. Can you give me an
> > example what you expect there? I guess it should be key 0x40 ('@')
> > with ascii 0x00 (because CTRL+a is key 0x41 / ascii 0x01) - am I
> > right? If so, qt4 doesn't support this keyevent anymore and I have
> > to change this for qt3/free.
> >
> > Christian
>
> Hi, Christian. Here shift-2 is the " character. Running lyx from the
> console as
>
> $ lyx -dbg key
>
> Press key 4129 text "none", ascii "0"
> Setting key to 4129,
> KeySym is Control_L
> isOK is 1
> isMod is 1
> isModifier true
> Press key 4128 text "none", ascii "0"
> Setting key to 4128,
> KeySym is Shift_L
> isOK is 1
> isMod is 1
> isModifier true
> Press key 34 text """, ascii "34"
> Setting key to 34, "
> KeySym is quotedbl
> isOK is 1
> isMod is 0
> encoding is iso8859-1
> Using codec ISO 8859-1
> ISOEncoded returning value 34
> action first set to [261]
> action now set to [261]
> Key [action=261][S-C-quotedbl]
> Cannot decode: "
>
> I get the @ character as shift-' and CTRL+SHIFT+' gives:
>
> Press key 4129 text "none", ascii "0"
> Setting key to 4129,
> KeySym is Control_L
> isOK is 1
> isMod is 1
> isModifier true
> Press key 4128 text "none", ascii "0"
> Setting key to 4128,
> KeySym is Shift_L
> isOK is 1
> isMod is 1
> isModifier true
> Press key 64 text "none", ascii "0"
> Setting key to 64,
This is exactly what I needed. key 0x040 with ascii 0. And this is also the
problem why qt4 gives back '"' - it makes an extra conversion when ascii ==
0 and so we get '"' for CTRL+SHIFT+2 instead. I'll fix it and you should
take a look when porting to qt4 that this keyevent maybe doesn't work
anymore.
Thx,
Christian
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++
--- End Message ---