From kde-devel Tue Jul 16 21:35:26 2002 From: aleXXX Date: Tue, 16 Jul 2002 21:35:26 +0000 To: kde-devel Subject: Re: global key press and key release events X-MARC-Message: https://marc.info/?l=kde-devel&m=102685358517644 On Tuesday 16 July 2002 15:34, Kuba Ober wrote: > > I'd like to get X11-global keypress and keyrelease events. > > I tried the following in KGlobalAccel: > > Why not install an event filter in QApplication? > > I think that KGlobalAccel wasn't designed for what you want to do. AFAIK it > should only react to releases of modifier keys like shift, control, alt, > meta, etc. It shouldn't react to releases of non-modifier keys -- did you > ever see a global accelerator in a program which is a key-release rather > than keypress accelerator? ;-) BTW many, if not all keyboards cannot handle > multiple non-modifier keypresses at the same time (so if you press say Q, A > and W together, you may only see say two of the three keypresses), IIRC. > > Cheers, Kuba Ober Well, I want to start an "action" (not in the sense of KAction) when a key is pressed down, and stop it when the key is released again. I already tried something with x11EventFilter(), but it didn't work as I expected it to. Maybe I should try again. Bye Alex >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<