[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/konsole/src
From: CVS by malte <kde-cvs () kde ! org>
Date: 2001-09-02 3:48:38
[Download RAW message or body]
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);
emit sndBlock(s.data(),s.length()); // we may well have s.length() > 1
return;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic