Commit graph

174 commits

Author SHA1 Message Date
Darcy Wong
7fe850c603
Merge pull request #7652 from keymanapp/fix/web/polyfill-find-index
fix(web): Add polyfill for Array.findIndex()
2022-11-09 07:18:36 +07:00
Darcy Wong
7d265b5f42
Merge pull request #7646 from keymanapp/fix/web/polyfill-includes
fix(web): Add polyfill for Array.includes()
2022-11-09 07:18:19 +07:00
Marc Durdin
d7fbdfc59a
Merge pull request #7617 from keymanapp/fix/developer/7616-inferred-key-text-stability
fix(developer): improve support for inferred key cap text
2022-11-09 05:14:44 +11:00
Darcy Wong
9baa77c015 fix(web): Add polyfill for Array.findIndex 2022-11-08 14:39:15 +07:00
Darcy Wong
e27b70d5a0 fix(web): Add polyfill for Array.includes() 2022-11-08 09:26:45 +07:00
Marc Durdin
88e5bb8cdd fix(web): doModifierPress was testing against wrong device
The doModifierPress function was testing against the 'actual' device
rather than the virtual device, which meant that in the web debugger on
a desktop, testing a touch device, it was effectively testing against
the desktop device data rather than the simulated touch device data.

I did not observe any significant differences in behaviour between the
two modes. So I am not 100% confident that this change is necessary. But
it is a little concerning that there was a mismatch here.
2022-11-07 07:01:50 +11:00
Marc Durdin
7255f1c7f7 fix(web): avoid reset for touch system keyboard
When using the touch 'system' keyboard, the modifier keys are reset by
the kbdMismatch logic introduced in #7543. This is evident in the web
debugger of Keyman Developer, where the system keyboard is easily
accessible.

This maintains the fix from #7543, but removes the `resetContext()`
side-effect.
2022-11-07 06:43:39 +11:00
Marc Durdin
238a8e9185 fix(developer): improve support for inferred key cap text
Fixes #7616.

Fixes a crash when attempting to infer key cap text from key id, and
cleans up the support for inferred key text so that it works correctly
in the designer.

Also adds a safeguard to KMW to stop invalid key ids causing a crash.
2022-11-04 06:18:24 +11:00
Marc Durdin
c336a8052c fix(developer): publish @keymanapp/keyman-version to npm
Fixes #7582.

Because of https://github.com/npm/cli/issues/3466, we must publish our
internal dependency @keymanapp/keyman-version. This change adds a common
builder function builder_publish_to_npm in build-utils-ci.inc.sh to help
with that task, which should be adopted by other scripts that need to
publish to npm, in the future.

For now, responsibility for publishing keyman-version is delegated to
kmlmc. In the future, we will move this to a single top-level build
action that publishes all npm modules across the entire repo for the
given version.
2022-11-02 13:33:24 +11:00
Joshua A. Horton
43bf49d1cd change(common/models): adds optional 'testMode' param to LMLayer config 2022-10-31 09:34:22 +07:00
Joshua Horton
a060ccb6fd
Merge pull request #7543 from keymanapp/fix/web/oskEvent-keyboard-synch
fix(web): ensures keyboard does not change underneath OSK keystroke
2022-10-26 14:13:54 +07:00
Joshua A. Horton
c3e3fb04d5 fix(web): ensures keyboard does not change underneath OSK keystroke 2022-10-26 09:45:26 +07:00
Joshua A. Horton
042daf7fdc fix(web): failsafe button-class val on failed string parse 2022-10-21 10:40:29 +07:00
Joshua A. Horton
3704e71818 refactor(web): layout 'sanitize' methods 2022-10-20 09:32:35 +07:00
Joshua A. Horton
ecc9edeb66 change(web): layout row id number coercion 2022-10-20 08:54:19 +07:00
Joshua A. Horton
7ddadbe145 chore(web): padpc, widthpc cleanup 2022-10-20 08:47:59 +07:00
Joshua A. Horton
527aaa6618 feat(web): keyboard layout now allows numeric width, pad, sp 2022-10-19 10:27:38 +07:00
Marc Durdin
b7000f5b7f chore(common): builder_start_action wildcard support 2022-10-12 13:28:37 +11:00
Marc Durdin
30121d9793 chore(common): remove space for builder_..._action param 2022-10-12 13:28:37 +11:00
Marc Durdin
1cecb87f7f feat(common): builder dependency support 2022-10-12 12:50:26 +11:00
Joshua A. Horton
9f952cd6eb chore(web): retools input-processor build, test scripts 2022-10-03 15:03:13 +07:00
Joshua Horton
fc7dfb9879
Merge pull request #7346 from keymanapp/chore/web/update-toolchain
chore(web): update Node dev-dependencies
2022-09-27 08:53:42 +07:00
Joshua A. Horton
12c1de791e change(common/models): better handling of prior commit 2022-09-22 09:46:18 +07:00
Joshua A. Horton
5b2ba7aa70 chore(common/models): fixes script warning for unstarted action 2022-09-22 09:40:51 +07:00
Joshua A. Horton
fc105b1dab chore(web): updates karma dev-dependency 2022-09-22 09:13:20 +07:00
Joshua A. Horton
cf1088027b fix(common/web): mocks did not update deadkey positions on context manipulation 2022-09-22 08:57:45 +07:00
Marc Durdin
51b1808c9a chore: typo in lm-worker build 2022-09-21 10:32:33 +10:00
Marc Durdin
a3129adedc refactor(common): rename builder_has_action and document
* `builder_has_action` renamed to `builder_start_action`
* `builder_report` renamed to `builder_finish_action`
* `builder_has_action` created to be a silent test for the action
* Added reasonably comprehensive documentation.
2022-09-21 10:21:35 +10:00
Joshua A. Horton
12ac0df573 chore(common): low-hanging requested changes 2022-09-20 12:07:14 +07:00
Joshua A. Horton
ccf2919bb4 feat(web): report-scoping no longer option; is perma-on 2022-09-20 10:56:01 +07:00
Joshua A. Horton
2f639ecc9c feat(common): builder report scoping option 2022-09-20 10:10:51 +07:00
Joshua A. Horton
94544277fc chore(common): minor cleanup in keyman-version, provides test case 2022-09-20 09:27:29 +07:00
Joshua A. Horton
2bea392baa feat(common): builder_-managed failure-trap 2022-09-20 09:23:38 +07:00
Joshua A. Horton
256b21f691 feat(common): builder current-action tracking 2022-09-20 09:08:02 +07:00
Joshua A. Horton
29e24493bc fix(common): color option needed for builder_describe 2022-09-20 08:52:12 +07:00
Joshua A. Horton
4399548df0 feat(common): DESCRIBE_TERM_START, _END 2022-09-20 08:30:33 +07:00
Joshua A. Horton
18c5fae23b chore(common/web): simple tweaks for PR review 2022-09-20 08:21:22 +07:00
Joshua A. Horton
ac5c7d71c3 fix(common/web): shell script chmod +x 2022-09-19 14:24:43 +07:00
Joshua A. Horton
d5f11f4555 chore(web): Merge branch 'master' into refactor/web/low-level-build-scripts 2022-09-19 14:22:51 +07:00
Marc Durdin
5da24ff279
Merge pull request #7307 from keymanapp/dependabot/npm_and_yarn/nanoid-and-mocha--removed
chore(deps): bump nanoid and mocha
2022-09-19 15:34:19 +10:00
Joshua A. Horton
24092511bb refactor(web): reworks low-level module build scripts 2022-09-19 12:04:14 +07:00
Joshua A. Horton
744354e2a1 fix(common/models): fixes reference dropped by git merge 2022-09-19 08:52:50 +07:00
Joshua Horton
43bdab1999
Merge pull request #7242 from keymanapp/change/web/fat-finger-weighting
change(web): better fat-finger key weighting ✏️
2022-09-19 08:23:06 +07:00
Joshua Horton
2caa22ee2a
Merge pull request #7241 from keymanapp/fix/common/models/no-whole-replacements
fix(common/models): blocks full-text "corrections" ✏️
2022-09-19 08:22:46 +07:00
dependabot[bot]
93ec6106e1
chore(deps): bump nanoid and mocha
Bumps [nanoid](https://github.com/ai/nanoid) and [mocha](https://github.com/mochajs/mocha). These dependencies needed to be updated together.

Removes `nanoid`

Updates `mocha` from 8.4.0 to 10.0.0
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v10.0.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
- dependency-name: mocha
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-16 21:06:23 +00:00
Joshua Horton
4f4ddb6107
Merge pull request #7290 from keymanapp/fix/common/models/timer-maxtime
fix(common/models): max prediction wait check
2022-09-15 08:23:45 +07:00
Joshua A. Horton
917fce0750 chore(common/models): final requested tweak 2022-09-15 08:23:08 +07:00
Joshua Horton
a390c2fb2f
chore(common/models): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-09-14 13:32:14 +07:00
Joshua A. Horton
6fbe089244 change(web): tweaks max wait time threshold to mitigate lag 2022-09-14 10:13:29 +07:00
Joshua A. Horton
0845210f20 fix(common/models): max prediction wait check 2022-09-14 09:57:29 +07:00