Commit graph

2177 commits

Author SHA1 Message Date
Joshua A. Horton
401de6f35b chore(web): simple error logging to verify logic assumptions, get Sentry logs if invalidated 2022-11-28 08:12:25 +07:00
Joshua A. Horton
bddaccb896 chore(web): Merge branch 'beta' into fix/web/lang-menu-unwanted-page-scroll 2022-11-25 15:05:06 +07:00
Joshua A. Horton
0aeb36b927 change(web): per most recent review 2022-11-24 08:36:47 +07:00
Joshua A. Horton
9218cb4ad2 change(web): adds null/undef lang-tagged lexical model prevention 2022-11-24 08:30:51 +07:00
Joshua A. Horton
890089dc0f change(web): review-requested separate func 2022-11-23 09:25:06 +07:00
Joshua A. Horton
192ee2dbf2 fix(web): unit test breakages 2022-11-23 09:20:00 +07:00
Joshua Horton
707a3687bb
Merge pull request #7612 from keymanapp/feat/web/embedded-globe-hint
feat(web): re-implementation of introductory globe-key help bubble
2022-11-23 08:16:57 +07:00
Joshua Horton
813738b00b
Merge pull request #7741 from keymanapp/fix/web/key-text-scaling
fix(web): inferred key text + spacebar caption scaling
2022-11-23 08:16:13 +07:00
Joshua A. Horton
8bb07b8ffd fix(web): locks page scroll when scrolling lang menu 2022-11-22 10:38:52 +07:00
Joshua A. Horton
bb3a757272 fix(web): some embedded-only code was included in browser-oriented product 2022-11-22 08:41:50 +07:00
Joshua A. Horton
fe52cafc7d chore(web): cleans out fulfilled todo comments 2022-11-21 08:33:37 +07:00
Joshua Horton
71e12a7ced
chore(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-11-21 08:26:48 +07:00
Joshua A. Horton
9629a3898a fix(web): fixes extreme globe-hint width on tablets 2022-11-18 10:45:02 +07:00
Joshua Horton
04cdf49871
Merge pull request #7694 from keymanapp/fix/web/doc-kbd-styling
fix(web): documentation keyboard style application + layout
2022-11-18 10:18:39 +07:00
Joshua A. Horton
06d088f848 change(web): tip dismissal only blocks input behind the tip itself 2022-11-18 10:15:51 +07:00
Joshua A. Horton
8cdbe6b79e change(web): globeHint.css -> globe-hint.css 2022-11-18 08:45:07 +07:00
Joshua A. Horton
1fa75b450a fix(web): doc keyboards now include device-dependent top-level font-scaling 2022-11-18 08:27:27 +07:00
Joshua A. Horton
6624268c4a fix(web): also spacebar caption text 2022-11-17 15:41:19 +07:00
Joshua A. Horton
84d5b00bf1 fix(web): osk key text scaling 2022-11-17 15:16:56 +07:00
Joshua A. Horton
5f2c884b25 change(web): globeHint has separate stylesheet 2022-11-17 10:42:02 +07:00
Joshua A. Horton
d3c34ad797 chore(web): Web-side cleanup per PR review 2022-11-17 09:58:26 +07:00
Joshua A. Horton
87fc6921af change(web): adds a bit of dynamic resizing to help bubble 2022-11-15 14:42:39 +07:00
Joshua A. Horton
f44017ae4e change(web): reworks Web-side implementation, adds interaction-based autodismiss 2022-11-15 10:28:58 +07:00
Joshua A. Horton
93791ef445 chore(web): cleanup, tweaks from PR review 2022-11-14 11:37:39 +07:00
Joshua A. Horton
c5bf803b50 refactor(web): cleans up doc-kbd stylesheet handling (within PR) 2022-11-14 08:48:52 +07:00
Joshua A. Horton
bcf921441c feat(web): doc-kbd test page use of shadow dom for CSS isolation 2022-11-11 16:08:04 +07:00
Joshua A. Horton
87b37fcee4 fix(web): OSK layerID validation 2022-11-11 12:53:09 +07:00
Joshua A. Horton
eb1e89594a fix(web): row height styling was not applied in doc kbds 2022-11-11 12:17:09 +07:00
Joshua A. Horton
b5029ec8b3 fix(web): appends doc-kbd style, shifts related logic check to mutationobserver 2022-11-11 09:10:39 +07:00
Joshua A. Horton
88967cf746 change(web): prep for passthrough of help-bubble text l10n 2022-11-10 13:13:44 +07:00
Joshua A. Horton
c0caad99d1 feat: embedded API func for globe-hint use 2022-11-10 12:04:30 +07:00
Joshua A. Horton
84caeea054 chore(web): minor cleanup 2022-11-10 10:53:19 +07:00
Joshua A. Horton
db764158d1 change(web): simpler globe-hint position styling 2022-11-10 10:43:42 +07:00
Darcy Wong
a82df0e0ea fix(web): Add additional checks on className.indexOf 2022-11-09 12:48:56 +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
Marc Durdin
08ef07750d fix(web): Handle undefined keyId in multi-tap
Fixes #7647.
2022-11-08 14:44:54 +11:00
Joshua A. Horton
83b2aae099 change(web): partial CSS restyle; CSS-based bubble height control 2022-11-04 15:16:53 +07:00
Joshua A. Horton
464da9b0b8 chore(web): minor cleanup, missed change for prior commit 2022-11-04 14:15:50 +07:00
Joshua A. Horton
9e76ce6e3c change(web): removes constrain field from globe hint 2022-11-04 12:16:06 +07: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
Joshua A. Horton
5f67c79306 feat(web): start of embedded globe hint 2022-11-03 15:16:56 +07:00
Marc Durdin
1fdc5a0be4 feat(web): Custom layer targets for Shift double-tap
Applies proposed feature https://community.software.sil.org/t/testing-caps-on-touch/6849/5:

1. A `caps` layer must still exist in the keyboard.
2. If there is at least one multitap subkey defined on the Shift key on
   the active layer, then the `nextlayer` property of the first multitap
   subkey for the Shift key will be used instead of the default `caps`.
3. This does not change the behavior of the Shift key otherwise.

For example, the following defines a valid multitap key on Shift on the
`rightalt` layer to switch to a custom extended `rightalt-shift-caps`
layer.

This does not implement any other multitap functionality. It just allows
the keyboard developer to specify a target layer for a given double-tap.

```
  {
    "id": "K_SHIFT",
    "text": "*Shift*",
    "width": 150,
    "sp": 1,
    "nextlayer": "rightalt-shift",
    "layer": "default",
    "multitap": [
      {
        "text": "",
        "id": "T_new_694",
        "sp": "1",
        "nextlayer": "rightalt-shift-caps"
      }
    ]
  },
```
2022-11-03 10:35:44 +11:00
Marc Durdin
b676cc1d9a
Merge pull request #7563 from keymanapp/fix/ios/7517-iPad-not-recognised-as-tablet
fix(ios): iPad was not recognised as tablet device
2022-11-01 05:38:10 +11:00
Marc Durdin
71af6160db fix(ios): iPad was not recognised as tablet device
Fixes #7517.

Cleans up the setDeviceType code which was attempting to set the device
type far too late in the init sequence, and moves responsibility for
detection from kmwembedded.ts to ios-host.ts, as this device test is
iOS-specific.
2022-10-28 13:02:19 +11:00
Joshua Horton
1bdb2d4364
Merge pull request #7557 from keymanapp/fix/web/model-id-case-insensitivity
fix(web): model language ids now case-insensitive
2022-10-28 08:17:40 +07:00
Joshua A. Horton
50cfdc7072 fix(web): model language ids now case-insensitive 2022-10-27 12:30:56 +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 Horton
31ce257f9d
Merge pull request #7544 from keymanapp/fix/web/isChiral-string-param
fix(web): allow `isChiral()` to accept string name parameter of keyboard
2022-10-26 14:13:44 +07:00
Joshua A. Horton
717e6fd472 fix(web): isChiral(<string>) 2022-10-26 11:11:45 +07:00
Joshua Horton
b097c351e1
Merge pull request #7463 from keymanapp/chore/web/engine-tools-build-rework
chore(web): KMW dev-tools reorganization, cleanup, script updates 📜
2022-10-26 10:17:01 +07:00