Parent document is top of "Motif FAQ (Part 6 of 9)"
Previous document is "201) How can I specify my own keyboard traversal order?"
Next document is "203) How can I direct the keyboard input to a particular widget?"

202) How can I determine which widget has keyboard focus?

[Last modified: Sept 95]

Answer:  In Motif 1.2 or later, use XmGetFocusWidget().

Ken Lee, http://www.rahul.net/kenton/

Parent document is top of "Motif FAQ (Part 6 of 9)"
Previous document is "201) How can I specify my own keyboard traversal order?"
Next document is "203) How can I direct the keyboard input to a particular widget?"