Hi Peter,
The thing is that I am using a streaming service that pushes data from
the server (comet technique) so that this connection never dies. The
browser sees it as a continuous page load. So the ESC key is still a
valid input at that point. And when the user does hit escape it is
equivalent to a stop which kills the streaming service HTTP connection
which is what I am trying to prevent. The way I have accomplished this
so far is by implementing a Keyboard listener on any widget that
listens for keyboard inputs and preventing the default browser
behaviour for the ESC key. These widgets could be buttons, list,
checkboxes etc.
But there are still other places like the slider bar which can break
this connection. (I am not sure of this scenario because I cannot
reproduce it consistently). But it is something else that is listening
to the keyboard listener and not ignoring my event (maybe it's the
scroll panel), which is why I am questioning the sequence of events of
a key press.
What I want to clearly understand is this. When an ESC key is pressed,
how is the event distributed. So which of the following is true:
1. If the escape key is pressed on a text field does it start bubbling
upwards to the parent all the way to the browser or
2. Are there two events one for the browser and one for the text field
but the text field one is executed first giving me the chance to do
what I want to do (including preventing the firing of the second
event).
Or is it that both are incorrect and the browser handles this in a way
that I do not understand.
Thanks!
On Mar 12, 5:20 pm, Peter Blazejewicz <
peter.blazejew...@gmail.com>
wrote:
> > Thanks!- Hide quoted text -