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

Keystrokes not passed into application running on AVP #33

Open
billyjacoby opened this issue Feb 15, 2024 · 3 comments
Open

Keystrokes not passed into application running on AVP #33

billyjacoby opened this issue Feb 15, 2024 · 3 comments

Comments

@billyjacoby
Copy link

When having a window selected and, the keystrokes that I'm making on a keyboard attached via Virtual Display are not passed into the relevant window.

I'm testing this on an actual AVP not the simulator. The keystrokes from my keyboard are definitely getting sent through the AVP and not directly to the mac, since there's no input at all when focused on an Ensemble window.

@saagarjha
Copy link
Owner

Sorry, I don't understand. Where are the keystrokes going?

@billyjacoby
Copy link
Author

I'm not exactly sure myself, but they're not going to the selected application via the Ensemble window or to the host computer.

To reproduce:

  • I connected to my MacBook via built in VisionOS Screen sharing
  • Opened the terminal application running on my MacBook via Ensemble in VisionOS
  • Focused on the Terminal VisionOS window and tried typing with my MacBook's keyboard (connected via universal control from the screen sharing)

Keystrokes didn't show up in the Terminal application, even though it was definitely selected and active.

@saagarjha
Copy link
Owner

I take it that you've given Ensemble on macOS the appropriate permissions, made sure Terminal is focused on macOS, and have actively focused and are looking at the Ensemble window for Terminal in visionOS as you're doing this? If so I would put a breakpoint here and make sure it is getting hit:

func injectKey(key: Key, down: Bool) {

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