hey thanks Hasan
it works.
However it is working only for ESC and not for ENTER even though i have used
the above lines in my code.
On Thu, Jan 15, 2009 at 2:57 PM, Hasan Turksoy hturk...@gmail.com wrote:
you can override the PopupPanel#onKeydownPreview method like below;
@Override
In general, this occurs when another widget other than dialog (which is
listening Enter and Esc keys) has got the focus...
On Fri, Jan 23, 2009 at 6:40 AM, sagar sagar5...@gmail.com wrote:
hey thanks Hasan
it works.
However it is working only for ESC and not for ENTER even though i have
used
My application displays a popup whenevr a particular button is
clicked. Now i can hide the popup whenever the user clicks the mouse
outside of it using the default popup-panel property provided by GWT.
Apart from that I also need to listen to keyboard so that if the user
hits ESC on the keyboard
you can override the PopupPanel#onKeydownPreview method like below;
@Override
public boolean onKeyDownPreview(char key, int modifiers) {
// Use the popup's key preview hooks to close the dialog when either
// enter or escape is pressed.
switch (key) {
case