keyman icon indicating copy to clipboard operation
keyman copied to clipboard

fix(web): key preview stickiness 🪠

Open jahorton opened this issue 1 year ago • 2 comments

Fixes only part of #10592.

Key previews should no longer "stick", even after rapid typing. Does not fixed stuck highlighting or cases where tapped keys appear to be ignored, however.

Note that this only fixes a small part of the overall problem; there are a lot of other aspects to the behavior reported by #10592 that will be addressed in followup PRs, hence this receiving an emoji symbol to represent the 🪠 chain being started here.

As for the internal details behind what this PR fixes: there were a couple of code paths that cancelled the preview-host controller but didn't unset it... while some of the logic for showing a new preview requires that "unset". Adding such statements to the affected code paths appears to resolve the sticky key-preview behaviors.

@keymanapp-test-bot skip

As this PR seeks to address a host of related known errors but only fixes a bit of them, specifying a proper user test at this point would be quite tricky. #10843 will host the main user testing suite for this PR chain, as it exists as the final "rung" of this PR "ladder."

jahorton avatar Feb 20 '24 04:02 jahorton

Should probably refactor the paired call to ensure those are always done together; just noted that the longpress codepath also lacks a paired call. L628ish.

jahorton avatar Feb 28 '24 02:02 jahorton

Will this also fix keys getting stuck (highlighted) in #11116

darcywong00 avatar Apr 01 '24 00:04 darcywong00

Is this PR waiting on anything to get merged into beta?

darcywong00 avatar Apr 03 '24 01:04 darcywong00

Oh right, I didn't actually do the merges yesterday b/c it was pretty late when everything got cleared. I should get on that.

jahorton avatar Apr 03 '24 02:04 jahorton

Changes in this pull request will be available for download in Keyman version 17.0.301-beta

keyman-server avatar Apr 03 '24 18:04 keyman-server