View Single Post
  #7  
Old 07-27-2011, 06:16 AM
Hezzy002 Hezzy002 is offline
Registered User
Join Date: Jul 2011
Posts: 247
Hezzy002 is a jewel in the roughHezzy002 is a jewel in the rough
Quote:
Originally Posted by cbk1994 View Post
That would only check the first children of GraalControl, so, for example, a button inside a window would not be checked.

If it's absolutely necessary, I'd do something like this.

PHP Code:
function onFirstResponderChanges(temp.obj) {
  if (
temp.obj.dontStealFocus) {
    
this.lastResponder.makeFirstResponder(true);
  } else {
    
this.lastResponder temp.obj;
  }

Then you could just set dontStealFocus on any GUI control and it wouldn't steal focus.
Sounds perfectly ideal, thanks for the suggestion mate.
Reply With Quote