Author |
Message |
27/06/2008 10:49:59
|
kabat
Power User
Joined: 10/12/2007 10:12:44
Messages: 78
Offline
|
Hi,
we have a page having following controls: a field, a button and a hotkey executing the action listener of the button by pressing 'Return'.
If the focus is in the field and I press Return, everything is executed like expected.
But if the focus is on the button and I press Return, the action listener of the button is executed twice. This unfortunately doesn't fit to our logic. We get a strange behaviour in our application.
Shouldn't the hotkey be overwritten by the action of the button by pressing Return on the button? So the action listener would be executed only once.
Thanks, Agnes
|
|
|
27/06/2008 11:02:38
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5534
Offline
|
Hi,
yes, there is a double execution "return" invokes the hotkey via the menu and "return" invokes the button (same for other elements). Because POPUPMENU and BUTTON are two components each one is firing the event to the server.
We will ad an "Enter-key-ignore-if-coming-from-xyz-component" to the hotkey management, then only the button event is coming to the server.
Available with next update.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
27/06/2008 11:07:58
|
kabat
Power User
Joined: 10/12/2007 10:12:44
Messages: 78
Offline
|
Ok, thanks. This will solve the problem, too.
Agnes
|
|
|
06/01/2009 17:16:12
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
Could the mechanism "Enter-key-ignore-if-coming-from-xyz-component" be extended to gridcol?
In my (typical) search workpage, when the focus is on a search result item (gridcol) and return is entered, then the item is opened in a new workpage. This behaviour is overwritten if I set the search button's hotkey to return(10).
Daniel
|
|
|
07/01/2009 12:33:43
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5534
Offline
|
...agree, this is a good remark, thanks.
Will be available with next update (Mo next week).
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
13/01/2009 09:44:36
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
I have downloaded the last CC version. Unfortunately, the onRowExecute() is still overwritten by the return hot key.
Daniel
|
|
|
13/01/2009 09:53:04
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5534
Offline
|
Hi,
hmmm??
Could you please attach/send the correpsonding jsp page(s)? THANKS!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|