Keyboard event

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
Keyboard event

Submitted by Anonymous on Tue, 05/14/2002 - 12:27. Developers
Hi,

How can I receive a key pressed event in a window that doesn`t have focus ?

ICS_support

Well, by definition, the event then doesn`t take place in that window at all. Perhaps you want to get a key event when the pointer is over a particular window, even if that window doesn`t have focus. You`d need to grab the pointer and process its events in order to get such a key event.

Anonymous

No. I would like to catch the event even if i don`t have the pointer inside the window. I have a multi-window application, and there is a kind of action that operators need to do often, and pressing a button would be the easiest way.

ICS_support

Then you need to do the sort of passive grab on keys that window managers do, assuming you can do so without conflicting with the window manager.