Re: [ROOT] HandleKey(...) called twice...

From: Brett Viren (bv@bnl.gov)
Date: Fri Jun 22 2001 - 00:45:40 MEST


Andreas Zoglauer writes:
 > 
 > I'm trying to make my GUI key-sensitive and added some lines like:
...
 > Now unfortunately after pressing a key, this function is called twice!

You are probably triggering on both a key press and a key release.
Try checking Event_t:fType for being a kGKeyPress.  See GuiTypes.h.

-Brett.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET