From 0a61be3b42b4b152468a5ef2def4a18baeda9b4f Mon Sep 17 00:00:00 2001 From: hash Date: Wed, 21 Aug 2002 17:54:33 +0000 Subject: ctrl and alt keys should work now --- diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp index 89b713e..a9137b9 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp @@ -2,6 +2,7 @@ * TODO * make a font selection thing (size too) * make a cursor thing + * add meta key support for german, etc * * * diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index 7334c1c..949164a 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp @@ -358,7 +358,13 @@ void Keyboard::mousePressEvent(QMouseEvent *e) modifiers = (ctrl ? Qt::ControlButton : 0) | (alt ? Qt::AltButton : 0); - emit key(unicode, qkeycode, modifiers, true, false); + if ('A' <= unicode && unicode <= 'z' && modifiers) { + + qkeycode = QChar(unicode).upper(); + unicode = qkeycode - '@'; + } + + QWSServer::sendKeyEvent(unicode, qkeycode, modifiers, true, false); // pickboard stuff if (usePicks) { -- cgit v0.9.0.2