• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: focus ring around button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: focus ring around button


  • Subject: Re: focus ring around button
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 17 Feb 2004 13:02:25 +0000

On 17 Feb 2004, at 12:50, Ruben Smits wrote:

> I guess you're right about the path around buttons, this might be hard
> to find out. :-(
>
> I have a panel in my application with a textField, and an OK-button to
> dismiss the panel. So this is a kind of default button.
>
> However, when user presses <ENTER>, the textField is firstResponder
> and a "newline" is inserted. I would like to keep this behavior.
> When user presses <ALT+ENTER>, OSX preforms the action of the default
> button, in my case the OK-button.
>
> So, since the default button does not react on the <ENTER> but does
> react on the <ALT+ENTER>, it seems fair to draw a focusring for the
> button, instead of displaying the default button in blue.
>
> In the OSX installer there's a focusring for the OK-button, but as I
> understand from you there's no option in the framework yet?

Not that I've seen. That doesn't mean that there isn't a way to do it,
just that I don't know how either :-)

I'm not 100% certain that it's an appropriate way to highlight the
button in any case; the text field has the focus, so should have a
focus ring. Making the button have a focus ring as well would be
confusing, I think. Probably against the Apple HIG as well.

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: focus ring around button
      • From: Ruben Smits <email@hidden>
References: 
 >focus ring around button (From: Ruben Smits <email@hidden>)
 >Re: focus ring around button (From: Alastair Houghton <email@hidden>)
 >Re: focus ring around button (From: Ruben Smits <email@hidden>)
 >Re: focus ring around button (From: Alastair Houghton <email@hidden>)
 >Re: focus ring around button (From: Ruben Smits <email@hidden>)

  • Prev by Date: Re: focus ring around button
  • Next by Date: Re: NSEnumerator doesn't support NSCopying - why?
  • Previous by thread: Re: focus ring around button
  • Next by thread: Re: focus ring around button
  • Index(es):
    • Date
    • Thread