On Sep 3, 2015, at 7:06 PM, Alex Hall <[email protected]> wrote: > >> On Sep 3, 2015, at 21:45, Lee Ann Rucker <[email protected]> wrote: >> >> Between the Key Equivalent label and the Alternate checkbox, there’s a thing >> that looks like a textfield but which Accessibility Inspector seems to be >> unaware of. > > I thought that might be the case. So it's there, but not visible to any > accessibility technology. > > >> 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?
It’s always there. It looks like a normal textfield with a cancel button on the right like a search field, but I grabbed it in Xcode’s UI Inspector and it’s a custom class, IBKeyEquivalentEntryField, apparently not even an NSControl subclass. Interestingly, that inspector thinks it’s an accessibility element, with the basic set of AX attributes. Maybe it’s meant to be and the keystroke grabbing behavior interferes. >> >> As an aside, it annoyingly grabs cmd-S too, so every so often I’ve thought >> I’ve saved a file but actually all I’ve done is broken my app’s menus. So if >> it had some accessible content that you had to actively choose to use, that >> would help all users: my UI to choose a modified key combination consists of >> a segmented control to let you toggle on shift, control, option, cmd, and a >> combo box where you choose the special keys from a popup (delete, FN keys, >> etc) or type a letter. And it has apply and cancel buttons so you never >> change it by mistake. And, of course, AX works on it. > > That would be wonderful! :) Thanks for the help. >> >> >> On Sep 3, 2015, at 6:25 PM, Alex Hall <[email protected]> wrote: >> >>> Hello all, >>> I know this is normally a trivial process: select the menu item, click the >>> Attributes Inspector, set the key equivalent. The problem is, it's >>> apparently impossible for VoiceOver to manage, and when I file the bug, I >>> want to be sure I know where the problem lies. >>> >>> The question, then, is simple: exactly how do you set a key equivalent in >>> IB, assuming enough vision to do it the "normal" way? Specifically, where >>> do you go in the Attributes Inspector, and how do you enter the desired >>> keystroke? >>> >>> VO tells me about the text field for the title of the menu item, then it >>> reports a text label that reads "key equivalent". Next to that is the >>> checkbox for whether this menu item is an alternate. For items that are >>> preset, like Undo or Copy, there's an unlabeled AX button just before the >>> "key equivalent" label. Sometimes, by playing with mouse routing/click >>> commands while focused on that label, I can get an untitled window to >>> appear. Switching to it results in VO being completely stuck for the few >>> seconds I have before the window vanishes. I've tried quickly typing the >>> keystroke I want--thinking I had landed in some kind of odd text >>> field--while this mysterious window is open, but that doesn't do anything. >>> I have a feeling there's either a step I'm missing, or--more likely--the >>> necessary control for this is invisible to VO. >>> >>> Setting it in code, for the record, fails as well, since I get errors about >>> the key mask I want not being a member of NSEvent. That's a different >>> topic, but I wanted to mention that I've tried just coding it, and was >>> unable to do so, hence my desire to alert Apple to the inaccessibility of >>> this process in IB. >>> >>> -- >>> Have a great day, >>> Alex Hall >>> [email protected] >>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Xcode-users mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/xcode-users/lrucker%40vmware.com >>> >>> This email sent to [email protected] >> > > > -- > Have a great day, > Alex Hall > [email protected] > _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
