Hi,
from my experience with web forms, I am used to an action_event on pressing the TAB key.
First I tried to use
textfield.set(TextComponentPeer.PROPERTY_SYNC_MODE, TextComponentPeer.SYNC_ON_CHANGE);
as described in this post. Unexpectedly, the TAB key does not yield an actionevent. Thus, I changed the _storeValue function in Sync.TextComponent.js:
437a438,440
> if (keyEvent && keyEvent.keyCode == 9 && keyEvent.type == "keydown") {
> this.component.doAction();
> }
this works fine.
Unfortunately I can't figure out how to include this feature in a more standard way in the server-java. For example I thought to add a constant field
"SYNC_ON_TAB_AS_WELL" to nextapp.echo.webcontainer.sync.component.TextComponentPeer and upon
textfield.set(TextComponentPeer.PROPERTY_SYNC_MODE, TextComponentPeer.SYNC_ON_TAB_AS_WELL);
choose the new _storeValue() function with the added feature?
Best
Stefan
Hi, did you solve this? I
Hi, did you solve this? I need the same behavior.
Thanks!
Anibal
tab replacement
I have a better idea now, but I am busy at a different place right now, so I only patch my
Sync.TextComponent.jsand every textcomponent will take a tab like a return. You can replace the standard with the attached one, I think it is RC1Best