Here's the relevant _javascript_ references to get you started.  Basically what you want to do is to attach an event handler to any and/or all input fields to listen for a return key being pressed and then send a "click" message to whatever button you want to be the "default."


--
Galen Rhodes


On Dec 11, 2005, at 7:24 AM, Jeremy Matthews wrote:

Thanks Galen; no way to override this in code?
Some apps I want to keep a consistent appearance, but change the default button.

Thanks,
jeremy

On Dec 10, 2005, at 11:40 PM, Galen Rhodes wrote:

Generally speaking the first button will be the default.  When I say "first" I mean the first in tab order.

--
Galen Rhodes


On Dec 10, 2005, at 10:40 PM, Jeremy Matthews wrote:

Let's say you have a form with a couple of run-of-the-mill form buttons (cancel, save, continue, etc).

Which form button will respond to hitting "enter" or "return" on the keyboard, and why?
How is it changed?

Thanks,
jeremy _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]



--
Galen Rhodes




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to