Commit graph

826 commits

Author SHA1 Message Date
Joshua A. Horton
6b5ef29fcc fix(web): reverts prior commit, adds related docs 2022-07-15 08:35:21 +07:00
Joshua Horton
0eb828ed53 chore(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-07-15 08:35:20 +07:00
Joshua A. Horton
29f6c16c08 chore(web): unit test fix 2022-07-15 08:17:13 +07:00
Joshua A. Horton
43a21c6b7b chore(web): reduce layer-change noise 2022-07-15 08:17:12 +07:00
Joshua A. Horton
6fd9647957 fix(web): postkeystroke should use the 'context' device, not event device 2022-07-15 08:17:10 +07:00
Keyman Build Agent
d9d0d83c42 auto: increment stable-15.0 version to 15.0.267 2022-07-08 07:33:31 -04:00
Marc Durdin
70949fc38f fix(web): ncaps rules not matching on touch
Fixes #6910.

Regression introduced in #6874 / #6849 (which themselves were improving
the Caps Lock situation).

Ensures that either `NO_CAPS` or `CAPS` is always set in the modifier
flags.
2022-07-08 16:14:18 +10:00
Marc Durdin
4875fad407 chore(web): ts-ignore for downlevel Sentry calls 2022-07-07 10:58:19 +10:00
Marc Durdin
22d21e30f7 chore: Apply suggestions from code review
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2022-07-07 09:37:45 +10:00
Marc Durdin
2e38d403b3 fix(web): only report console errors if _enabled 2022-07-07 09:37:42 +10:00
Marc Durdin
e3e8039d8e fix(web): improve console.error() reporting
The back story:

Currently Keyman for Android reports errors sent to the console via
`console.error()` into Sentry but sentry-manager itself does not. This
means that Keyman for iPhone and iPad and other users of sentry-manager
do not report these errors. Many of these errors are important.

What's worse is that Keyman for Android's error reporting here (via the
`sendKMWError()` function in Keyman Engine for Android) does not capture
stack traces, and so many of the errors we get do not have enough
information to resolve them.

Furthermore, by having `sendKMWError()` in Keyman for Android, we
capture exceptions and other program errors twice -- once on the web
side, and once on the Java side -- this adds noise to our error
reporting. Sentry also tends to lump many unrelated `sendKMWError()`
events together, so tracking resolution to the errors is painful.

The fix:

This adds a patch to sentry-manager to capture `console.error()` and
`console.warning()` events and report them through Sentry's normal error
reporting, and disables the `sendKMWError()` report (although we leave
the breadcrumb in place for when there are later, related Java errors).
There is a Sentry integration called CaptureConsole, but it does not
support capturing stack traces until v6.14
(https://github.com/getsentry/sentry-javascript/pull/4034). Updating
Sentry to 6.14 or newer is a bigger job (due to ES6 baseline req. etc.)

Note that Keyman for iOS currently has some other stubs in place
overriding the `console.*` functions. These should be removed for
release builds, so that we can use this pattern instead. I will try and
tackle this in a follow-up PR (I will build it on my mac so I can test
it).

A sample error report captured with this mechanism (no sourcemaps here
because this is a -local build):

https://sentry.io/organizations/keyman/issues/3401287467/events/c40fd2cebb7743cc8dfe72e0dd34bf65/?project=5983524

I am proposing we back-port this to 15.0-stable as we are missing a lot
of data in many of our error reports on Android.
2022-07-07 09:37:33 +10:00
Keyman Build Agent
62a20ea48b auto: increment stable-15.0 version to 15.0.266 2022-07-04 05:01:46 -04:00
Keyman Build Agent
d84434b235 auto: increment stable-15.0 version to 15.0.265 2022-07-01 00:09:13 -04:00
Marc Durdin
e5293a695c fix(web): Maintain separate Caps Lock states for touch and physical
Fixes #6799.

Caps Lock state management for touch layouts was not quite right -- it
touched the base Caps state variables rather than just the event Lstates
property. This meant that it was impossible to track the physical Caps
Lock key separately to the touch layout layer, and that the two states
would interfere with each other.
2022-06-30 07:03:04 +10:00
Keyman Build Agent
9b8ac0c8d8 auto: increment stable-15.0 version to 15.0.264 2022-06-24 01:02:48 -04:00
Keyman Build Agent
021c8d5e89 auto: increment stable-15.0 version to 15.0.263 2022-06-22 21:04:12 -04:00
Keyman Build Agent
86014a5ea2 auto: increment stable-15.0 version to 15.0.262 2022-06-18 00:39:25 -04:00
Marc Durdin
6867bfd492 fix(web): crash on custom modifier keys
Fixes #6788.
Fixes KEYMAN-WEB-22.
Fixes KEYMAN-DEVELOPER-BQ.
Fixes KEYMAN-ANDROID-160.

Fixes a crash introduced in #6473 which was trying to prevent modifier
keys from triggering "fat finger" alternate lookups, due to incomplete
nullish coalescing.

Related to this, from what I can see, a secondary side-effect of the fix
in #6473 was that some key events may have never had their ruleBehaviors
finalized if they matched the `isOnlyLayerSwitchKey` heuristic, leading
to potential issues with edge case 'deadkey+layer switch' keys or keys
that set store values, for example. So this fix also makes the
`isOnlyLayerSwitchKey` test more targeted.

Identified this when adding a Caps Lock layer to sil_euro_latin and
testing the layer switching. At time of fix, the error had been raised
in KeymanWeb, Keyman Developer and Keyman for Android, but not yet
Keyman for iPhone and iPad.
2022-06-17 05:17:05 +10:00
Keyman Build Agent
d3b4cf1dcc auto: increment stable-15.0 version to 15.0.261 2022-06-14 23:30:51 -04:00
Keyman Build Agent
0a6ffa137a auto: increment beta version to 15.0.260 2022-06-10 14:02:55 -04:00
Keyman Build Agent
f9537ee2a2 auto: increment beta version to 15.0.259 2022-06-06 14:02:30 -04:00
Keyman Build Agent
d1576e6717 auto: increment beta version to 15.0.258 2022-06-03 14:02:30 -04:00
Keyman Build Agent
99add57dda auto: increment beta version to 15.0.257 2022-06-01 14:02:17 -04:00
Keyman Build Agent
a59fa21d61 auto: increment beta version to 15.0.256 2022-05-31 14:02:28 -04:00
Keyman Build Agent
2eb0ccfcc3 auto: increment beta version to 15.0.255 2022-05-30 14:02:44 -04:00
Keyman Build Agent
cd2b32fc4d auto: increment beta version to 15.0.254 2022-05-27 14:05:13 -04:00
Keyman Build Agent
996018fe90 auto: increment beta version to 15.0.253 2022-05-25 14:02:14 -04:00
Keyman Build Agent
6ad1549167 auto: increment beta version to 15.0.252 2022-05-23 14:02:48 -04:00
Keyman Build Agent
9697f0233c auto: increment beta version to 15.0.251 2022-05-20 14:02:40 -04:00
Keyman Build Agent
e71dd1af38 auto: increment beta version to 15.0.250 2022-05-19 14:02:12 -04:00
Keyman Build Agent
31879771ed auto: increment beta version to 15.0.249 2022-05-17 14:02:44 -04:00
Keyman Build Agent
d1b9f2d52c auto: increment beta version to 15.0.248 2022-05-16 14:02:41 -04:00
Keyman Build Agent
bd85fc895e auto: increment beta version to 15.0.247 2022-05-11 14:02:08 -04:00
Keyman Build Agent
5dbb6642b7 auto: increment beta version to 15.0.246 2022-05-10 14:01:54 -04:00
Keyman Build Agent
7448674fe0 auto: increment beta version to 15.0.245 2022-05-09 14:01:48 -04:00
Keyman Build Agent
52b42a5958 auto: increment beta version to 15.0.244 2022-05-03 14:02:37 -04:00
Keyman Build Agent
9286a67ee0 auto: increment beta version to 15.0.243 2022-04-29 14:02:29 -04:00
Keyman Build Agent
d2edf15283 auto: increment beta version to 15.0.242 2022-04-27 14:02:30 -04:00
Darcy Wong
6c32ce5603
Merge pull request #6569 from keymanapp/fix/core/web/sentry-manager-for-each
fix(common/core/web): Fix forEach loop in SentryManager
2022-04-27 05:51:57 +07:00
Keyman Build Agent
2a59670bf2 auto: increment beta version to 15.0.241 2022-04-26 14:02:34 -04:00
Darcy Wong
de6dfda0cc fix(common/core/web): Fix forEach loop in SentryManager 2022-04-26 11:26:27 +07:00
Keyman Build Agent
d17e03a35a auto: increment beta version to 15.0.240 2022-04-22 14:02:30 -04:00
Keyman Build Agent
c5199698ac auto: increment beta version to 15.0.239 2022-04-21 14:02:18 -04:00
Keyman Build Agent
0e3173c528 auto: increment beta version to 15.0.238 2022-04-20 14:02:18 -04:00
Keyman Build Agent
414199711f auto: increment beta version to 15.0.237 2022-04-19 14:02:23 -04:00
Joshua Horton
b8fba08a3f
Merge pull request #6473 from keymanapp/fix/web/6005-no-modifier-fat-fingers
fix(web): blocks modifier key fat-fingering
2022-04-18 21:00:29 -05:00
Keyman Build Agent
f4473990a7 auto: increment beta version to 15.0.236 2022-04-18 14:02:00 -04:00
Keyman Build Agent
4052e00890 auto: increment beta version to 15.0.235 2022-04-14 14:02:32 -04:00
Keyman Build Agent
767817c425 auto: increment beta version to 15.0.234 2022-04-13 14:02:17 -04:00
Joshua Horton
226be15de3
chore(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-04-12 08:11:34 -05:00