0

An idea about handle enterkey

asked 2009-04-27 08:50:42 +0800

evpole gravatar image evpole
481 2

in many erp programs,there's such an request:
handle enterkey and change it to tab key (which means when user press enterkey,the focus jump to the next editable component).
now we have to write javascript code to meet it.also have to deel with both ie and firefox.
It will be great to integrate this feature into the next zk-bin.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-04-27 10:52:25 +0800

robertpic71 gravatar image robertpic71
1275 1

Check this thread.

However, this in no real resolution....

Maybe you want post a feature request like:
InputElement.focusNextTab();
for (Input) components. This would enable a generic (serverside) enter-eventhandler.
And focusNextTab() could be nice for selectors like bandbox, combobox and listbox too.

Of course it is possbile now:
handel the enterkey-event
- try nextSibling and focus
- if nextSibling no input element -> try next
- if nextSibling null --> getParent --> and try nextSibling...

And maybe, zk-team knows a smarter (clientside) way to "route" enter as tabkey..

/Robert

link publish delete flag offensive edit

answered 2009-04-28 01:39:30 +0800

iantsai gravatar image iantsai
2755 1

I already post a feature request, you guys can track it through:

Enter Key to go on to next input element

link publish delete flag offensive edit

answered 2009-04-28 02:27:47 +0800

evpole gravatar image evpole
481 2

Thanks for response,dear Robert!

from now on, I do it by client side action.
it's easy to deel with ie ,but lots of codes have to be writen to deel with firefox.

i wish there's a property :
<textbox ok2Tab="true"/>

link publish delete flag offensive edit

answered 2009-04-28 02:36:50 +0800

evpole gravatar image evpole
481 2

Thanks iantsai !

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-04-27 08:50:42 +0800

Seen: 323 times

Last updated: Apr 28 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More