Commit graph

16 commits

Author SHA1 Message Date
jahorton
0a33ed863d chore(web): addresses review comments 2021-07-23 11:48:51 +07:00
jahorton
7d08b2795f feat(web): delayed keyman.osk initialization 2021-07-07 11:45:27 +07:00
Marc Durdin
968c825787 fix(web): use language code correctly in toolbar
Fixes #4566.

When the toolbar shows a differentiation for the language code, it was
not using the correct minification-safe property name, which resulted in
`[undefined]` being displayed instead.
2021-03-08 21:39:16 +11:00
Marc Durdin
34568b3e8e fix(web): toolbar and loading optimisations
There are a number of changes here to improve the performance of
KeymanWeb and the toolbar and reduce unnecessary requests:

1. (kmwbase.ts and kmwkeyboards.ts) Added option `setActiveOnRegister`,
   default `'true'`; if set to `'false'` then will never attempt to
   activate the first registered keyboard. Note that this property is a
   string because the `options` object currently supports only string
   types, which is not ideal, but out of scope for this PR.

2. (kmwuitoolbar.ts) fixed issue with toolbar not matching correctly on
   full BCP 47 code (line 960) after keyboard change notification.

3. (kmwuitoolbar.ts) fixed issue with toolbar not showing active
   keyboard if the keyboard is activated before init is complete
   (see `ui.lastSelectedKeyboard` references).

4. (kmwuitoolbar.ts) avoided re-entrancy for `ui.changeKeyboardEvent`
   by ensuring that `ui.selectKeyboard` does not attempt to set the
   active keyboard again for keymanweb; note that this was being caught
   by the event dispatcher in keymanweb but it was still not ideal.

5. (kmwuitoolbar.ts) with above changes, able to remove appalling two
   second timeout on load (yay!)

These changes will be useful immediately with keymanweb.com.
2021-01-21 12:07:15 +11:00
jahorton
f4f892e65f Hack - alters the toolbar map to match regions 2019-09-23 14:57:09 +07:00
jahorton
fa20d1699c Hack: forces regionless kbds to 'me' region 2019-09-23 14:35:47 +07:00
jahorton
96bf0ad162 Comment enhancement 2019-09-23 08:57:31 +07:00
jahorton
c343baad07 Fixes #1791. Better subtag handling in Toolbar UI 2019-09-23 08:54:57 +07:00
Joshua A. Horton
b4302b9bc0 Pulls #1629's fix into master. 2019-02-26 08:51:30 +07:00
Joshua A. Horton
62bdfc6674 KeymanWeb - versioning update for beta. 2019-01-15 08:52:43 +07:00
Joshua A. Horton
c7d086d1de Addresses PR review. 2018-10-30 08:31:21 +07:00
Joshua A. Horton
86878f8d2f Removes an unneeded variable from an earlier commit in the chain. 2018-10-26 08:13:10 +07:00
Joshua A. Horton
cc6c5d8356 Tidies up the new comments for finalization. 2018-10-26 08:11:18 +07:00
Joshua A. Horton
42932856e9 Partial fix - no more duplicate languages under a region. 2018-10-24 14:49:39 +07:00
Joshua A. Horton
2b6ce9bb18 Fixed a shutdown bug that was the source of IE troubles. 2018-03-08 14:02:30 +07:00
Joshua A. Horton
3a3c91515f Refactors TS compile defs, converts the UI element sources. 2017-12-15 10:19:53 +07:00
Renamed from web/source/kmwuitoolbar.js (Browse further)