[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdebase/konsole/src
From:       Lukas Tinkl <lukas () kde ! org>
Date:       2001-09-03 8:51:32
[Download RAW message or body]

On Sun, Sep 02, 2001 at 03:48:38AM +0000, CVS by malte wrote:
> > kdebase/konsole/src TEmuVt102.C,1.56,1.57
> Author: malte
> Sun Sep  2 03:48:27 UTC 2001
> > > Modified Files:
> TEmuVt102.C
> Log Message:
> Most annoying bug in HEAD/Qt3 I encountered so far: Ctrl didn't work in
> konsole anymore. I'm not too confident of this hack, but it seems to work
> for now. Please have a close look:
> > @@ -784,6 +784,12 @@ void TEmuVt102::onKeyPress( QKeyEvent* e
> {
> if (ev->state() & AltButton) sendString("\033"); // ESC, this is the ALT 
prefix
> QCString s = codec->fromUnicode(ev->text());     // encode for application
> +    // FIXME: In Qt 2, QKeyEvent::text() would return "\003" for Ctrl-C 
etc.
> +    //        while in Qt 3 it returns the actual key ("c" or "C") which 
caused
> +    //        the ControlButton to be ignored. This hack seems to work for
> +    //        latin1 locales at least. Please anyone find a clean solution 
(malte)
> +    if (ev->state() & ControlButton)
> +      s.fill(ev->ascii(), 1);

Eeek :( Will have a look at it later.

-- 
Regards,
Lukáš Tinkl

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic