Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching between different apps, focusedUIElementChanged will not trigger #35

Open
GanZhiXiong opened this issue Aug 24, 2022 · 2 comments

Comments

@GanZhiXiong
Copy link

In the same App, press tab to switch focus, focusedUIElementChanged will be triggered.

But when switching between different apps, focusedUIElementChanged will not trigger. I think when switching to a different app, the focusedUIElement changes, then focusedUIElementChanged should be triggered.

for example:

  1. Open System Preferences
  2. Focus on the search box in the upper right corner
  3. Open https://www.google.com/ with Chrome browser
  4. Focus on the Google search box
  5. Switch to System Preferences
  6. After switching to Chrome

We will find that when the two applications are switched, focusedUIElementChanged does not trigger

@GanZhiXiong
Copy link
Author

@tmandry
Can I trigger focusedUIElementChanged after switching apps? Or provide other solutions. Thank you!

@tmandry
Copy link
Owner

tmandry commented Aug 27, 2022

AXSwift is intended to be a thin wrapper around the system accessibility APIs and expose their exact behavior, so that type of thing would best be implemented by a layer on top of this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants