Commit graph

5162 commits

Author SHA1 Message Date
Joshua Horton
b9a47bfaf7
chore(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-07-06 12:54:06 +07:00
Joshua A. Horton
4489337cd6 change(web): disables touch OSK auto-shift on hardware shift 2022-07-06 12:25:08 +07:00
Marc Durdin
6c39bb8b0b
Merge pull request #6877 from keymanapp/feat/developer/touch-layout-flick-and-multitap
feat(developer): add flick and multitap to touch layout schema and doc 🙊
2022-07-06 15:18:32 +10:00
Marc Durdin
a4a1e269d1
Merge pull request #6856 from keymanapp/feat/developer/keyman-touch-layout-schema
feat(developer): .keyman-touch-layout schema for 15.0 🙊
2022-07-06 15:18:23 +10:00
Marc Durdin
ace3e2c6b0
chore: Apply suggestions from code review
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2022-07-06 15:15:09 +10:00
Joshua A. Horton
4c0ab7ab1a fix(web): set(layer) should not trigger for hardware keystrokes 2022-07-06 12:11:30 +07:00
Joshua A. Horton
a9d52e42d2 chore(web): unit test fix 2022-07-06 11:55:19 +07:00
Joshua A. Horton
90b7b4ce5f chore(web): reduce layer-change noise 2022-07-06 11:38:20 +07:00
Joshua A. Horton
aba150ddba fix(web): postkeystroke should use the 'context' device, not event device 2022-07-06 11:38:14 +07:00
Marc Durdin
10caf08919 fix(web): only report console errors if _enabled 2022-07-05 13:14:20 +10:00
Marc Durdin
0b64871be3 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-05 10:57:42 +10:00
Joshua A. Horton
120d48e2af fix(web): bounds detection logic 2022-07-04 10:27:06 +07:00
Joshua A. Horton
124dcc108b fix(web): config field handling 2022-07-04 10:27:06 +07:00
Marc Durdin
b2427386f1 feat(developer): tighter spec for .keyman-touch-layout 2022-06-30 14:37:43 +10:00
Marc Durdin
ebfd474d90 feat(developer): add flick and multitap to touch layout schema and doc
Does not tighten the spec for legacy data -- that should probably be a
separate schema file.
2022-06-30 11:43:51 +10:00
Marc Durdin
3d9d6f59dc chore: add documentation for keyman-touch-layout 2022-06-30 11:07:38 +10:00
Joshua A. Horton
be28b54954 fix(web): let's get it right this time 2022-06-29 15:26:55 +07:00
Joshua A. Horton
4a10fde758 fix(web): fixed dimension ordering to match CSS style 2022-06-29 15:17:13 +07:00
Marc Durdin
7ec9859838 fix(developer): Show full version number
Updated various places in Keyman Developer to show the full
VersionWithTag rather than the short version number we had been
previously showing:

- About dialog
- Welcome screen
- Installer
- kmcomp help
- kmconvert help
- kmanalyze help
- kmdecomp help

This should help when testing to verify that we are testing the right
version.

Also fixed the keymansentry path when running command line C++ programs
from source repo.
2022-06-29 10:58:40 +10:00
Marc Durdin
60d4ceb5e6 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-29 06:20:45 +10:00
Marc Durdin
87cc5d42a8 feat(developer): add missing props to schema and make more lenient 2022-06-29 06:05:30 +10:00
Marc Durdin
d9accbe07b feat(developer): draft .keyman-touch-layout schema 2022-06-28 11:31:20 +10:00
Joshua A. Horton
d97281fafa feat(web): implements abstracted bound-check logic 2022-06-27 15:28:17 +07:00
Joshua A. Horton
49bc584ad9 feat(web): another iteration on boundary zone design/logic 2022-06-27 14:24:40 +07:00
Joshua A. Horton
6e45ca9a18 feat(web): start of input boundary generalization 2022-06-27 11:47:20 +07:00
Joshua A. Horton
6b424362d9 chore(web): cleans out replaced callbacks 2022-06-27 11:46:42 +07:00
Joshua A. Horton
cf34fa6b49 refactor(web): input tracking publishes update events 2022-06-27 11:46:42 +07:00
Joshua A. Horton
98f129c3d5 feat(web): starts unification, combined config 2022-06-27 11:46:42 +07:00
Joshua A. Horton
4a5f775dc5 fix(web): script must be executable 2022-06-27 11:44:44 +07:00
Joshua A. Horton
5142f80080 docs(web): started a change-tracking doc 2022-06-27 11:44:44 +07:00
Joshua A. Horton
df2a403d27 chore(web): baseline build script for gesture-recognizer 2022-06-27 11:44:44 +07:00
Joshua A. Horton
8e9ee39063 chore(web): disables OSK helper funcs 2022-06-27 11:44:44 +07:00
Joshua A. Horton
25ef83ef64 chore(web): raw copy of relevant, isolatable KMW code 2022-06-27 11:44:44 +07:00
Joshua A. Horton
98b6ff0ec5 feat(web): baseline file organization 2022-06-27 11:44:44 +07:00
Marc Durdin
9b4eedc2ea chore(web): update kmlmc path ref 2022-06-25 07:40:22 +10:00
Marc Durdin
4f36c3c2df chore(developer): Merge branch 'master' into chore/developer/js-to-lmc 2022-06-25 05:48:57 +10:00
Marc Durdin
3464cbac35 chore(windows): Merge branch 'chore/developer/js-to-lmc' into chore/windows/move-general-developer-files 2022-06-25 05:42:39 +10:00
Marc Durdin
018eb6cd53 chore(windows): Merge branch 'chore/developer/js-to-lmc' into chore/windows/move-common-packages-files 2022-06-25 05:41:23 +10:00
Marc Durdin
4eaee2217a
Merge branch 'chore/developer/js-to-lmc' into chore/windows/move-common-keyboards-files 2022-06-25 05:40:25 +10:00
Marc Durdin
c108008440 chore(windows): Merge branch 'chore/developer/js-to-lmc' into chore/windows/move-common-general-files 2022-06-25 05:39:26 +10:00
Marc Durdin
f22ed1a4a7
Merge pull request #6815 from keymanapp/chore/windows/delete-unused-general-files
chore(windows): delete unused files from global/delphi/general 🎢
2022-06-25 05:32:03 +10:00
Marc Durdin
a0fe8b16f8
Merge branch 'chore/developer/js-to-lmc' into chore/developer/move-common-components 2022-06-24 14:23:02 +10:00
Marc Durdin
bbb0f9d3d5 chore(developer): cleanup some manual tests 2022-06-24 14:21:03 +10:00
Joshua Horton
f6841333a2
Merge pull request #6557 from keymanapp/change/web/5943-ie-rooting
change(web): drops old IE-related handling code
2022-06-24 08:35:03 +07:00
Marc Durdin
d8b5e214cf
Merge pull request #6781 from keymanapp/chore/windows/remove-unused-components
chore(windows): remove unused components 🎢
2022-06-24 09:35:59 +10:00
Marc Durdin
34d4706a9b
Merge pull request #6760 from keymanapp/chore/windows/move-delphi-global-ui-units
chore(windows): rearrange global/delphi/ui units 🎢
2022-06-24 09:35:52 +10:00
Marc Durdin
1910ac85f5 chore(windows): Merge branch 'chore/developer/js-to-lmc' into chore/windows/move-delphi-common-units 2022-06-23 15:56:15 +10:00
Marc Durdin
0902c730c0
Merge pull request #6756 from keymanapp/chore/windows/move-keymanversion-h
chore(windows): move keymanversion.h to common 🎢
2022-06-23 15:55:06 +10:00
Marc Durdin
45969da17b chore(windows): Merge branch 'chore/developer/js-to-lmc' into chore/windows/cleanup-keyman64-h 2022-06-23 15:54:11 +10:00
Marc Durdin
5075b54343
Merge branch 'chore/developer/js-to-lmc' into chore/windows/move-common-headers 2022-06-23 15:52:06 +10:00