Marc Durdin
f633174f9f
fix(web): stop masking error
...
We are seeing this error thrown in some logs but it masks the underlying error.
2022-03-04 11:44:54 +11:00
Marc Durdin
bbbf1afce7
feat(web): basic support for newContext
...
Relates to #3621 .
Adds basic support for `begin newContext`.
2021-11-23 15:00:47 +11:00
Marc Durdin
db7f7e1f4b
Merge branch 'master' into fix/web/5353-uncaught-in-promise-error
2021-11-19 13:11:59 +11:00
Marc Durdin
fc8d1b3e72
fix(web): avoid error if timerid not valid
...
Relates to #5904 .
If a call to api.keyman.com takes longer than 10 seconds, the timerid
would no longer be valid, even if the call returns successfully. This
threw a cascade of errors.
There was a secondary issue where keymanweb.com was passing in an
invalid timerid, causing the same error cascade. This is fixed in
keymanapp/keymanweb.com#38 .
2021-11-15 11:17:59 +11:00
Marc Durdin
a7c050d71b
fix(web): resolve unhandled exception in promise
...
Fixes #5353 .
I made the promise usage consistent in the relevant addKeyboards
functions, instead of mixing promise and async/await style code, which
made it easier to spot the place(s) where promises had not been returned
as we needed.
2021-11-14 15:43:43 +11:00
jahorton
595984c813
fix(web): desktop sil_euro_latin patchup
2021-09-22 09:20:09 +07:00
jahorton
f070df079d
refactor(web): osk._Hide -> osk.startHide
2021-09-01 09:44:34 +07:00
jahorton
fe797fe657
refactor(web): osk now controls own display state
2021-09-01 09:44:30 +07:00
jahorton
7fd62c51f4
refactor(web): centralizes element-oriented OSK display logic, polish for prior commits
2021-09-01 09:44:02 +07:00
jahorton
6971f09c4d
refactor(web): activeElement, lastActiveElement as properties
2021-09-01 09:44:01 +07:00
Darcy Wong
786c223b98
chore(web): Cleanup per review comments
2021-07-26 20:59:08 +07:00
Darcy Wong
5d1a652314
Merge remote-tracking branch 'origin/master' into feat/web/add-keyboard-promise
2021-07-23 13:12:40 +07:00
Darcy Wong
0d50ff04c6
chore(web): Clarify comment about ignoring RegionCode
2021-07-23 13:12:33 +07:00
jahorton
b723d8c51b
chore(web): Merge branch 'refactor/web/osk-keyboard-view' into refactor/web/osk-cleanup-and-init
2021-07-21 09:13:27 +07:00
Darcy Wong
bf9dd55853
chore(web): Merge remote-tracking branch 'origin/master' into feat/web/add-keyboard-promise
2021-07-09 16:22:03 +07:00
Darcy Wong
e01f6bf201
fix(web): Add wrapper to convert one-to-many keyboard stubs
2021-07-09 16:16:41 +07:00
Darcy Wong
ec092ba1e3
chore(web): Change syntax for clone
2021-07-08 14:14:40 +07:00
Darcy Wong
3770b69692
fix(web): Copy the keyboard stubs for registration
2021-07-08 10:00:17 +07:00
jahorton
dbded0dd23
refactor(web): osk.prepare -> constructor, sync _Load
2021-07-07 11:46:12 +07:00
jahorton
e2ba78582e
feat(web): prevents crash on null keyman.osk field
2021-07-07 11:45:27 +07:00
Darcy Wong
082ed9bd9c
chore(web): Add button to test keyboard stub
...
* Per review comment, have separate button to add keyboard involving keyboard stub with languages Object and no filename.
2021-07-07 10:45:53 +07:00
Darcy Wong
20fa22dab6
fix(web): Move code to registerStub
2021-07-05 13:52:16 +07:00
Darcy Wong
d37e48c0cc
fix(web): Start fixing registeruStub return
2021-07-02 16:53:23 +07:00
Darcy Wong
6af2831c23
chore(web): Merge branch 'master' into feat/web/add-keyboard-promise
2021-07-02 09:04:58 +07:00
Marc Durdin
55c2192171
Merge pull request #5348 from keymanapp/feat/web/949-spacebar-text-controls
...
feat(web): spacebar text controls
2021-07-02 08:17:59 +10:00
Darcy Wong
2215452d20
chore(web): Rename to mergeAndResolveStubPromises
2021-07-01 10:11:56 +07:00
Darcy Wong
cbfc9b9f6b
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2021-07-01 09:53:35 +07:00
Darcy Wong
53b21d877a
chore(web): Add keyboard ID to error message
2021-06-30 11:17:12 +07:00
Darcy Wong
144125080b
feat(web): Handle deferment of adding keyboards
2021-06-30 10:26:19 +07:00
Darcy Wong
c68251bd23
fix(web): Fix adding single language element
2021-06-30 08:54:22 +07:00
Darcy Wong
da7a5b0f2e
chore(web): Minor cleanup
2021-06-30 08:37:00 +07:00
Darcy Wong
55bcdc5429
fix(web): Refactor merge of stubs
2021-06-29 16:50:10 +07:00
Darcy Wong
f706540165
feat(web): Fix handling of keyboardStubs and errorStubs
2021-06-29 13:28:31 +07:00
Darcy Wong
2622171456
feat(web): Update registerDeferredStubs to return a Promise
2021-06-29 10:32:03 +07:00
Darcy Wong
f5e7343d35
chore(web): Handle args in kmwbase
2021-06-29 08:51:57 +07:00
Darcy Wong
1d6ed84155
feat(web): Start updating addKeyboards to return Promise
2021-06-28 23:39:15 +07:00
Marc Durdin
e56f377d69
Merge branch 'master' into feat/web/949-spacebar-text-controls
2021-06-28 16:01:26 +10:00
Marc Durdin
5fe40f70a5
fix(web): allow addKeyboards to set displayName
...
While `registerStub` supported `displayName`, `mergeStub`, as used by
`addKeyboards`, also needs to support it.
2021-06-28 10:31:27 +10:00
Darcy Wong
972d6920b4
chore(web): Update languageListPromise type
2021-06-25 12:38:19 +07:00
Darcy Wong
37c42e7dee
chore(web): Merge branch 'feat/web/alert-option' into feat/web/error-stubs
2021-06-25 09:24:19 +07:00
Darcy Wong
c14443d798
chore(web): Cleanup console logging
2021-06-25 08:45:00 +07:00
Darcy Wong
c8f7a4cdf4
fix(web): Use util.internalAlert() wrapper
2021-06-24 13:02:49 +07:00
Darcy Wong
36acc16927
fix(web): Check useAlerts on internal calls
2021-06-24 11:42:02 +07:00
Darcy Wong
63e01e8d0b
chore(web): Cleanup keymanCloudRequest type
2021-06-24 10:39:11 +07:00
Darcy Wong
246e0cd250
fix(web): Clean up Error returns
2021-06-24 10:07:00 +07:00
Marc Durdin
38fc826fbf
feat(web): spacebar text controls
...
Relates to #949 .
* Adds optional `displayName` property to keyboard stubs: if present,
this will override the name on the spacebar.
* Adds optional `spacebarText` member to `keyman.options`. This defaults
to `SpacebarText.LANGUAGE_KEYBOARD`, and can be one of:
```
SpacebarText.LANGUAGE
SpacebarText.KEYBOARD
SpacebarText.LANGUAGE_KEYBOARD
SpacebarText.BLANK
```
* Sets the display pattern for LANGUAGE_KEYBOARD to be
"language - keyboard" instead of "language (keyboard)", which
reduces the number of parentheses visible on the spacebar.
2021-06-24 08:44:23 +10:00
Darcy Wong
f46d06907a
fix(web): Update ErrorStub type
2021-06-23 21:32:17 +07:00
Darcy Wong
359eabec2f
feat(web): Merge keyboard stub with error stub
2021-06-23 16:19:37 +07:00
Darcy Wong
9bbd8035e0
fix(web): Start addressing review comments
2021-06-18 15:26:54 +07:00
Darcy Wong
d1b76684a2
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2021-06-18 14:51:37 +07:00