Tab to button after field?
janschenkel at yahoo.com
Mon Apr 26 07:37:16 EDT 2004
--- RGould8 at aol.com wrote:
> I've got a series of text input fields that I have
> the user "tabbing
> between", and I'd like to make it so that when the
> user gets to the last field, they
> can hit tab, and hilite the SUBMIT button. Is this
> possible? I've got the
> "focus with keyboard" checkbox selected on my submit
> button, and I've got the
> "show focus border" turn on as well. I'm just not
> succeeding in getting the
> button to be focusable via the keyboard.
> I've also got the icon, hilite icon, visited icon,
> and armed icon set to
> different icons, just as a test.
If you're running on Windows or Motif lookAndFeel,
that should work ; however, MacOS doesn't support
focusing on a button control.
So the workaround there is to trap the 'returnKey'
message in your card script :
set the hilite of btn "Foobar" to true
wait 35 milliseconds
send "mouseUp" to btn "Foobar"
set the hilite of btn "Foobar" to false
Hope this helped,
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
More information about the Use-livecode