Hi Robert,

I've come to understand that this isn't the right way to fix this. The reason is that if the text field has focus, it should get the 's' keypress, even if the stats handler got it before and handled it... With this change, I'm not able to type an 's' in the input field.

But the stats handler can't know that an osgWidget input field has the focus...

So I think the solution would be to put the osgWidget handlers before any viewer event handlers, and these will only ever return true if they have the focus AND they handled the key, so the stats handler will check the handled state and won't respond.

All that to say, please ignore this submission, I'll handle it in my own code. Sorry for the noise.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to