When should kAXFocusedUIElementChangedNotification be sent?
When should kAXFocusedUIElementChangedNotification be sent?
- Subject: When should kAXFocusedUIElementChangedNotification be sent?
- From: Tom Bunch <email@hidden>
- Date: Mon, 12 Jun 2006 12:19:56 -0700
Hi folks,
My understanding is that kAXFocusedUIElementChangedNotification
should be sent whenever the keyboard focus changes. That's kind of
an imprecise way of describing the problem however, as we're not so
much talking about whether an NSResponder acceptsFirstResponder as we
are talking about whether the responder chain has changed. For
example, if I open two Safari windows (I think any two WebViews will
do) and make sure no NSResponder is selected in either, then click
back and forth between them, kAXFocusedUIElementChangedNotification
is not sent. Obviously, since spacebar will always scroll the
foremost Safari window, the responder chain is changing, and hence I
would argue that the notification should be sent. Now, it's easy
enough to work around that by also looking for a
kAXFocusedWindowChangedNotification - I just wanted to see if my
understanding of the semantic of
kAXFocusedUIElementChangedNotification was flawed somehow.
If not, I'm poised and ready as bugreporter.apple.com. I'm not
certain if I should argue that since the focused window changed, the
focused UI element _must_ also have changed, therefore I should be
able to count on that notification. That feels right to me...
-Tom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden