Commit graph

15266 commits

Author SHA1 Message Date
Eberhard Beilharz
08dbd712b2
chore(linux): Update Debian changelog 2022-07-19 11:02:36 +02:00
Eberhard Beilharz
ad2dfea22f
Merge pull request #6966 from keymanapp/fix/linux/cherry-pick/6930-gcc12
fix(common): Fix `delete` 🍒
2022-07-19 08:57:53 +02:00
Eberhard Beilharz
33af8014ef
fix(common): Fix delete
GCC 12 will output an error if the wrong `delete` is used.

Fixes #6930

(cherry picked from commit 57c736f17a)
2022-07-18 17:08:29 +02:00
Joshua Horton
c5480d19b3
Merge pull request #6951 from keymanapp/chore/web/cherry/remove-invalid-warning
chore(web): remove invalid warning msg 🍒
2022-07-15 13:09:08 +07:00
Joshua Horton
f2283b79c7
Merge pull request #6949 from keymanapp/fix/web/cherry/block-set-layer-on-desktop
fix(web): context-only rule effects, set(&layer) from physical keystrokes 🖇️ 🍒
2022-07-15 13:07:30 +07:00
Joshua A. Horton
ca1eb70cbd chore(web): remove invalid warning msg 2022-07-15 09:05:18 +07:00
Joshua A. Horton
58199d73bc fix(web): right, contextDevice is private; util.device matches it 2022-07-15 08:42:44 +07:00
Joshua A. Horton
1d108dbfaa change(web): tweaks fix to be closer to original stable code 2022-07-15 08:35:33 +07:00
Joshua A. Horton
9b2bcf1ea0 chore(web): applies PR suggestion (manually) 2022-07-15 08:35:32 +07:00
Joshua A. Horton
ebc8fcf40f change(web): relocates pageFocusHandler def'n 2022-07-15 08:35:31 +07:00
Joshua A. Horton
53268c41ae fix(web): applies PR suggestions 2022-07-15 08:35:30 +07:00
jahorton
bdcaa1d011 chore(web): extra check for robustness 2022-07-15 08:35:29 +07:00
jahorton
634596a307 fix(web): reset context on page focus loss 2022-07-15 08:35:28 +07:00
Joshua Horton
2f3ba849ef chore(web): applies code suggestion
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-07-15 08:35:26 +07:00
Joshua A. Horton
6c80da3fc3 fix(web): doModifierPress layer handling 2022-07-15 08:35:25 +07:00
Joshua A. Horton
e7f7511780 change(web): disables touch OSK auto-shift on hardware shift 2022-07-15 08:35:24 +07:00
Joshua A. Horton
0596ef15b8 fix(web): set(layer) should not trigger for hardware keystrokes 2022-07-15 08:35:23 +07:00
Marc Durdin
9ffca15f64 fix(developer): set contextDevice in web debugger
With the fix in fix/web/context-only-device, we need to ensure that the
debugger correctly tells KeymanWeb which device is active.

@keymanapp-test-bot skip
2022-07-15 08:35:22 +07:00
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
Marc Durdin
b5b6b884c3
Merge pull request #6935 from keymanapp/fix/ios/cherry-pick/6932-version-ignore-bundle-metadata
fix(ios): ignore CFBundleShortVersionString 🍒
2022-07-13 15:31:24 +10:00
Marc Durdin
38929b82ac fix(ios): ignore CFBundleShortVersionString
Use KeymanVersionWithTag from .plist instead of
CFBundleShortVersionString when checking version information, because
XCode can rewrite bundle version of frameworks. Details: #6932.
2022-07-13 06:30:27 +10:00
Marc Durdin
30d034d35a
Merge pull request #6927 from keymanapp/fix/developer/cherry-pick/6922-qrcode-for-package-editor
fix(developer): QR Code for Package Editor had wrong path 🍒
2022-07-12 15:27:24 +10:00
Marc Durdin
b4b53aa341 fix(developer): QR Code for Package Editor had wrong path 2022-07-12 15:07:03 +10:00
Keyman Server
826e18543f
Merge pull request #6915 from keymanapp/auto/version-stable-15.0-15.0.267
auto: increment stable-15.0 version to 15.0.267
2022-07-08 21:34:12 +10: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
50baf2ae06
Merge pull request #6913 from keymanapp/fix/web/cherry-pick/6910-ncaps-rules-not-matching-on-touch
fix(web): ncaps rules not matching on touch 🔥 🍒
2022-07-08 21:29:01 +10: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
060e926863
Merge pull request #6904 from keymanapp/fix/web/cherry-pick/improve-console-error-reporting
fix(web): improve `console.error()` reporting 🍒
2022-07-08 05:01:51 +10:00
Marc Durdin
4875fad407 chore(web): ts-ignore for downlevel Sentry calls 2022-07-07 10:58:19 +10:00
Marc Durdin
fced98e741 chore(android): tweak sendError for js errors 2022-07-07 09:50:20 +10:00
Marc Durdin
f95298a593 chore(android): disable sendError for js errors 2022-07-07 09:48:41 +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
5abf2daffb fix(web): remove spurious log "No keyboard stubs exist"
This error has been logged for every start of Keyman Engine for Web in
embedded contexts, but nothing bad ever happens. It does not really seem
to be anything we need to worry about. (It may be that the
`setDefaultKeyboard()` call will never return true, but it is still
harmless in any case.)
2022-07-07 09:37:44 +10:00
Marc Durdin
6bbc0316f3 fix(ios): only override console object in ios-host if debug enabled 2022-07-07 09:37:43 +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
Eberhard Beilharz
d1796da780
Merge pull request #6895 from keymanapp/fix/linux/cherry-pick/6893-postinstall
fix(linux): Fix post-install script 🍒
2022-07-06 09:14:43 +02:00
Eberhard Beilharz
928864fed1
fix(linux): Fix post-install script
This change fixes the ibus-keyman post install script which
previously failed if for whatever reason `SUDO_USER` is not set.

Fixes #6893

(cherry picked from commit 1f84299d08)
2022-07-05 18:17:29 +02:00
Keyman Server
42aa1b9a01
Merge pull request #6888 from keymanapp/auto/version-stable-15.0-15.0.266
auto: increment stable-15.0 version to 15.0.266
2022-07-04 19:02:25 +10:00
Keyman Build Agent
62a20ea48b auto: increment stable-15.0 version to 15.0.266 2022-07-04 05:01:46 -04:00
Joshua Horton
ae2acfb913
Merge pull request #6886 from keymanapp/fix/web/6885-unbound-banner-event-handler
fix(web): post-keystroke processing after use of pred. text selection
2022-07-04 15:03:20 +07:00
jahorton
e65656f3c3 chore(web): cleanup 2022-07-04 09:00:07 +07:00
jahorton
5add44e915 fix(web): properly binds 'suggestionApplied' event handler 2022-07-04 08:54:52 +07:00
Marc Durdin
1cec7a4e68
Merge pull request #6879 from keymanapp/fix/common/cherry-pick/trigger-builds-stable
fix(common): trigger builds correctly for stable builds 🍒
2022-07-02 05:52:06 +10:00
Keyman Server
03ec9dd580
Merge pull request #6880 from keymanapp/auto/version-stable-15.0-15.0.265
auto: increment stable-15.0 version to 15.0.265
2022-07-01 14:09:58 +10:00
Keyman Build Agent
d84434b235 auto: increment stable-15.0 version to 15.0.265 2022-07-01 00:09:13 -04:00