graeme
10th May 2006, 19:53
I've just noticed an odd behaviour of my program and I'm not certain if it is an issue with my system and so I was wondering if anyone else has experienced it.
I have a widget which traps mouse clicks and looks at the key modifier, doing different actions depending upon the modifier pressed at the time. However if I alt + tab to another application and then go back to my application it believes that the alt key is still pressed. <edit> Pressing and releasing the modifier key will undo this situation<edit>
Further investigation demonstrates the same behaviour for any modifier key that is held down whilst my application is in focus and then switching (say by a mouse click) to another application and then back again. I don't believe it is my system set up since it only happens if my application has focus but I'm not rullign that out. I run Fedora Core 4, KDE and QT 4.1.2.
Essentially has anyone experienced this behaviour before?
I have a widget which traps mouse clicks and looks at the key modifier, doing different actions depending upon the modifier pressed at the time. However if I alt + tab to another application and then go back to my application it believes that the alt key is still pressed. <edit> Pressing and releasing the modifier key will undo this situation<edit>
Further investigation demonstrates the same behaviour for any modifier key that is held down whilst my application is in focus and then switching (say by a mouse click) to another application and then back again. I don't believe it is my system set up since it only happens if my application has focus but I'm not rullign that out. I run Fedora Core 4, KDE and QT 4.1.2.
Essentially has anyone experienced this behaviour before?