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: Ken Thomases <email@hidden>
- Date: Thu, 03 Sep 2015 21:48:31 -0500
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.
Regards,
Ken
_______________________________________________
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