0

How to capture "Return Key" in Textbox or Combobox?

asked 2009-09-10 20:31:27 +0800

jyluo gravatar image jyluo
147 1 1

I found it to be pretty tricky because no event seems to be able to capture the "return" key when you edit a textbox or combobox. The "return" key should trigger a submit action and mysteriously, the search combobox on the top right corner of this forum page can do that. Can anybody tell me how? Thanks in advance!

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-09-11 05:09:35 +0800

baskaraninfo gravatar image baskaraninfo
526 2 2 9

You can extend EventListener and register for onOK event, to listen for ENTER event:

component.addEventListener("onOK", this);

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-09-10 20:31:27 +0800

Seen: 355 times

Last updated: Sep 11 '09

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