author | hash <hash> | 2002-08-22 04:33:16 (UTC) |
---|---|---|
committer | hash <hash> | 2002-08-22 04:33:16 (UTC) |
commit | ea0d66f137984689c4d4ef6da7dd4b7323760e8c (patch) (unidiff) | |
tree | 75332072b67132ef7fd7559578b7f02405d69a88 | |
parent | ee90b966cfc262770ef5a45c2bad0af6766245a2 (diff) | |
download | opie-ea0d66f137984689c4d4ef6da7dd4b7323760e8c.zip opie-ea0d66f137984689c4d4ef6da7dd4b7323760e8c.tar.gz opie-ea0d66f137984689c4d4ef6da7dd4b7323760e8c.tar.bz2 |
fixed nasty bug related to ctrl and alt keys
-rw-r--r-- | inputmethods/multikey/keyboard.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/inputmethods/multikey/keyboard.cpp b/inputmethods/multikey/keyboard.cpp index d5a7afd..7098a6b 100644 --- a/inputmethods/multikey/keyboard.cpp +++ b/inputmethods/multikey/keyboard.cpp | |||
@@ -304,2 +304,10 @@ void Keyboard::mousePressEvent(QMouseEvent *e) | |||
304 | } else if (qkeycode == Qt::Key_Control) { | 304 | } else if (qkeycode == Qt::Key_Control) { |
305 | |||
306 | if (ctrl) { | ||
307 | |||
308 | *ctrl = 0; | ||
309 | ctrl = 0; | ||
310 | |||
311 | } else { | ||
312 | |||
305 | ctrl = keys->pressedPtr(row, col); | 313 | ctrl = keys->pressedPtr(row, col); |
@@ -308,3 +316,12 @@ void Keyboard::mousePressEvent(QMouseEvent *e) | |||
308 | 316 | ||
317 | } | ||
318 | |||
309 | } else if (qkeycode == Qt::Key_Alt) { | 319 | } else if (qkeycode == Qt::Key_Alt) { |
320 | |||
321 | if (alt) { | ||
322 | *alt = 0; | ||
323 | alt = 0; | ||
324 | |||
325 | } else { | ||
326 | |||
310 | alt = keys->pressedPtr(row, col); | 327 | alt = keys->pressedPtr(row, col); |
@@ -312,2 +329,3 @@ void Keyboard::mousePressEvent(QMouseEvent *e) | |||
312 | *alt = !keys->pressed(row, col); | 329 | *alt = !keys->pressed(row, col); |
330 | } | ||
313 | 331 | ||