This sounds wierd. Are you saying that an event is being fired when a
user hits the enter key with focus on a button,
without you having registered a onKeyDown, onKeyPress or onKeyUp event
handler for that button?

If the onClick event is fired when you hit enter on the keyboard, it
sounds like on of the above event handlers (probably onKeyDown or
onKeyPress)
is firing a programmatic click event.


On 7 Nov, 04:33, Open eSignForms <[email protected]> wrote:
> I have a dialog box, with a close button that is given the focus so
> that hitting Enter results in it closing.
>
> That works fine.  In fact, it seems that the Enter actually results in
> a Click event, perhaps because it's a button receiving the key.
>
> But my onClick handler sets the focus on an input TextBox field on the
> form "under it" that cause the error.  This then seems to cause the
> onKeyUp key to fire on that TextBox.  I don't want this since the key
> actually was hit on the dialog box.
>
> If my dialog box doesn't set the focus back, this doesn't seem to
> happen.  But when it does set the focus back, it seems to cause the
> Enter to also be sent to it.
>
> What am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to