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

fix(mac): improve compliance checking #13337

Open
wants to merge 4 commits into
base: beta
Choose a base branch
from

Conversation

sgschantz
Copy link
Contributor

Improve the evaluation of whether the current text input client is compliant by better detecting when the last compliance check has become stale. The OS does not always notify the Input Method when the client has changed and sometimes the compliance for an application varies depending on where the user is typing (for example, typing in the Chrome address bar vs. typing in the Chrome context area with a Google doc loaded).

With this change, continue doing a compliance check when we receive a key down event, but change how we determine whether the client has changed, as encapsulated in TextApiCompliance isMatchingClient:applicationId:.

Also change the property client to weak so the TextApiCompliance instances do not retain the client. Add Sentry breadcrumbs to better investigate issues related to compliance.

@keymanapp-test-bot skip

@sgschantz sgschantz added the mac/ label Feb 24, 2025
@sgschantz sgschantz added this to the B18S2 milestone Feb 24, 2025
@sgschantz sgschantz self-assigned this Feb 24, 2025
@github-actions github-actions bot added the fix label Feb 24, 2025
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Feb 24, 2025

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@sgschantz sgschantz marked this pull request as ready for review February 26, 2025 06:43
@sgschantz sgschantz requested a review from SabineSIL as a code owner February 26, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant