Re: how to fire blur event when keydown ?

2011-07-21 Thread Patrick Tucker
Why not set focus to false.

On Jul 16, 11:48 am, Luke travalle...@gmail.com wrote:
      @UiHandler(textboxField)
      public void keyDownSearchHandler(KeyDownEvent event){

         //how to fire textboxField blur event after user press key
 down?
      }

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to fire blur event when keydown ?

2011-07-19 Thread Abduxkur Ablimit
@UiField
TextBox textboxField;

     @UiHandler(textboxField)
     public void keyDownSearchHandler(KeyDownEvent event){
        textboxField.fireEvent(new BlurEvent(){})
     }




From: Luke travalle...@gmail.com
To: Google Web Toolkit google-web-toolkit@googlegroups.com
Sent: Saturday, July 16, 2011 11:48 PM
Subject: how to fire blur event when keydown ?

     @UiHandler(textboxField)
     public void keyDownSearchHandler(KeyDownEvent event){

        //how to fire textboxField blur event after user press key
down?
     }

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how to fire blur event when keydown ?

2011-07-16 Thread Luke
 @UiHandler(textboxField)
 public void keyDownSearchHandler(KeyDownEvent event){

//how to fire textboxField blur event after user press key
down?
 }

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to fire blur event when keydown ?

2011-07-16 Thread Gal Dolber
This is a hard one. If you are trying to do what I think you need to fire a
tab event on the textbox, that will trigger the blur, and focus the next
field.

// The code should look something like this
NativeEvent e = Document.get().createKeyDownEvent();
textboxField.getElement().dispatchEvent(e);

On Sat, Jul 16, 2011 at 12:48 PM, Luke travalle...@gmail.com wrote:

 @UiHandler(textboxField)
 public void keyDownSearchHandler(KeyDownEvent event){

//how to fire textboxField blur event after user press key
 down?
 }

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to fire blur event when keydown ?

2011-07-16 Thread Gal Dolber
If forgot to say: the keyDownEvent you create should have the
KeyCodes.KEY_TAB key code

On Sat, Jul 16, 2011 at 2:42 PM, Gal Dolber gal.dol...@gmail.com wrote:

 This is a hard one. If you are trying to do what I think you need to fire a
 tab event on the textbox, that will trigger the blur, and focus the next
 field.

 // The code should look something like this
 NativeEvent e = Document.get().createKeyDownEvent();
 textboxField.getElement().dispatchEvent(e);


 On Sat, Jul 16, 2011 at 12:48 PM, Luke travalle...@gmail.com wrote:

 @UiHandler(textboxField)
 public void keyDownSearchHandler(KeyDownEvent event){

//how to fire textboxField blur event after user press key
 down?
 }

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/







-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.