Re: NSAlert
Re: NSAlert
- Subject: Re: NSAlert
- From: Richard Charles <email@hidden>
- Date: Mon, 10 Sep 2018 12:06:06 -0600
> On Sep 8, 2018, at 6:25 PM, Andy Lee <email@hidden> wrote:
>
> I don't know where or whether it's documented, but it's not new.
> Using Space for "clicking" whichever control has focus has been around
> for a while. I don't remember offhand -- it may depend on the setting
> in System Preferences that governs whether all controls can get
> keyboard focus.
> On Sep 8, 2018, at 6:52 PM, Alex Zavatone <email@hidden> wrote:
>
> Which version of macOS are you running?
Thanks for the comments.
On my development machine running 10.12.6 pressing the spacebar will dismiss a
simple NSAlert. This is because in System Preferences > Keyboard > Shortcuts >
Full Keyboard Access > All Controls was selected. (For some reason it took
forever to discover this.)
When "All Controls" is selected the control with focus will have a focus ring
drawn around it and pressing the spacebar will "click" the control with focus.
Also pressing the tab key will move the keyboard focus between controls.
Setting a control key equivalent to the return key will make it the default
control and it will be blue. The default control can be "clicked" by pressing
the return key.
One common place where you can see all of this in action is in the alert when
emptying the trash in Finder.
At one time this may have been all in my muscle memory but if you have been
using your iPhone day in and day out for the last many years then you may need
a referesher.
--Richard Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >NSAlert (From: Richard Charles <email@hidden>) |
| >Re: NSAlert (From: Alex Zavatone <email@hidden>) |