Re: Setting key equivalent for menu items in IB?
Re: Setting key equivalent for menu items in IB?
- Subject: Re: Setting key equivalent for menu items in IB?
- From: Alex Hall <email@hidden>
- Date: Thu, 03 Sep 2015 23:05:35 -0400
> On Sep 3, 2015, at 22:48, Ken Thomases <email@hidden> wrote:
>
> On Sep 3, 2015, at 9:06 PM, Alex Hall <email@hidden> wrote:
>>
>>
>>> On Sep 3, 2015, at 21:45, Lee Ann Rucker <email@hidden> wrote:
>>>
>>> It’s not a normal textfield; when focused it grabs all keystrokes including cmd-F7 which ought to do “lock focus” in the AX inspector but instead is set as the item’s key equivalent.
>>>
>>> The textfield has a button that lets you clear it (since of course typing backspace in that field just sets the shortcut to backspace); that’s the only part of it I can get to show up in the inspector. Its parent is the AXScrollArea that contains all the Menu Item stuff.
>>
>> I wonder if there's any way at all to trick VO into going there? I'm really thinking this untitled window that appears for a few seconds is tied to the process somehow, but I'm not sure how to make it stay open long enough for me to do anything. I want to simulate a click in it, then type my keystroke, but there's just no time. Visually, does this text field do anything at all after a few seconds, or is it just always there?
>
> Visually, it doesn't do anything special. It looks like a text field. One special behavior is that, once you hit a key, focus is automatically moved to the next focusable view. That's probably so you don't accidentally change the key equivalent you just assigned by typing another keystroke meant for something else. And maybe so you don't get trapped there if you're only using keyboard and no pointing device.
>
> Speaking of tabbing to controls, you can get to the Key Equivalent field by tabbing from the previous field. For a menu item, put focus in the Title field and then Tab. Focus will be in the Key Equivalent field and you can type a keystroke to set it. For a button, the previous field is the Sound field. Etc.
>
> Clearing the key equivalent just via keyboard doesn't seem possible, unfortunately.
Thank you, that works! If I tab from the Title text field, I can type my keystroke and am then placed on the "alternative" checkbox. Happily, the unlabeled AX button that then appears to the left of that checkbox (left in the tab order, anyway) will clear the keystroke if I want to. I didn't realize this before because, when I press tab, VO is totally silent and pretends that focus hasn't moved at all. Of course, to VO's understanding, focus really *hasn't* moved. No wonder I never picked up on this! Thanks again for the help. I'll still file this as a bug, of course, but at least I now have a workaround!
>
> Regards,
> Ken
>
--
Have a great day,
Alex Hall
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden