96d70d7
qt-bugs@ issue : 58251
96d70d7
bugs.kde.org number : 84434
96d70d7
applied: no
96d70d7
author: Lubos Lunak <l.lunak@kde.org>
96d70d7
96d70d7
Fixes keyboard input action in KHotKeys (see bug #84434).
96d70d7
96d70d7
--- src/kernel/qapplication_x11.cpp.sav	2004-10-07 15:38:05.000000000 +0200
96d70d7
+++ src/kernel/qapplication_x11.cpp	2004-10-12 11:46:32.513137808 +0200
96d70d7
@@ -5294,8 +5294,10 @@ static Bool qt_keypress_scanner(Display 
96d70d7
     qt_auto_repeat_data *d = (qt_auto_repeat_data *) arg;
96d70d7
     if (d->error ||
96d70d7
         event->xkey.window  != d->window ||
96d70d7
-        event->xkey.keycode != d->keycode)
96d70d7
+        event->xkey.keycode != d->keycode) {
96d70d7
+        d->error = TRUE;
96d70d7
         return FALSE;
96d70d7
+    }
96d70d7
 
96d70d7
     if (event->type == XKeyPress) {
96d70d7
         d->error = (! d->release || event->xkey.time - d->timestamp > 10);