Skip to content
New issue

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

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

Already on GitHub? # to your account

Use event taps for keyboard grab on macOS #1884

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

CendioOssman
Copy link
Member

These are the slightly more proper way to grab the keyboard and macOS and is what similar applications do. It avoids a lot of issues we have, e.g., problems with multiple monitors.

Unfortunately we need to have the user explicitly approve this (which really is a good thing, security wise), and Apple have chosen to mark this feature as only for accessibility.

Pre-requisite for windowed keyboard grabbing in #1375.

These are the slightly more proper way to grab the keyboard and macOS
and is what similar applications do. It avoids a lot of issues we have,
e.g., problems with multiple monitors.

Unfortunately we need to have the user explicitly approve this (which
really is a good thing, security wise), and Apple have chosen to mark
this feature as only for accessibility.
The user needs to authorize vncviewer in order to get the access needed
to grab the keyboard. Show this dialog at suitable times to make sure
there are no surprises why the keyboard grab isn't working.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant