Commit graph

2177 commits

Author SHA1 Message Date
jahorton
0359a68c15 fix(web): prevent error when attempting to reselect base key (embedded) 2021-06-24 12:32:22 +07:00
jahorton
39ec2cbb2e change(web): embedded longpress tracks source vkbd 2021-06-24 12:12:28 +07:00
jahorton
d99203545b refactor(web): encapsulates embedded popup-key lookup ops 2021-06-24 12:12:28 +07:00
jahorton
125a2ec0d0 refactor(web): two-stages embedded longpress/subkey 2021-06-24 12:12:28 +07:00
jahorton
d4d9808727 refactor(web): in-browser subkey tracking managed by SubkeyPopup 2021-06-24 12:12:08 +07:00
jahorton
50ee62a7e0 change(web): subkey lookup through base key 2021-06-24 12:03:27 +07:00
jahorton
2d06c65412 refactor(web): simplifies embedded executePopupKey 2021-06-24 12:03:26 +07:00
Darcy Wong
e5e1ccff4e fix(web): Simplify initialization of options 2021-06-24 11:50:03 +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
b68ed7f874 fix(web): revert assigning default attachType 2021-06-23 13:58:48 +07:00
Darcy Wong
9c4170bba6 fix(web): Handle blank attachType 2021-06-23 12:43:34 +07:00
jahorton
56287dc688 chore(web): Merge branch 'master' into refactor/web/osk-subkey-promises 2021-06-22 14:05:28 +07:00
Joshua Horton
260446a3e4
Merge pull request #5292 from keymanapp/refactor/web/osk-key-highlighting
refactor(web): osk key highlighting/preview behavior
2021-06-22 13:58:47 +07:00
Joshua Horton
05c319ebf4
Merge pull request #5291 from keymanapp/refactor/web/osk-keys
refactor(web): OSK key source-code reorganization
2021-06-22 13:58:39 +07:00
jahorton
1f0b6f344f fix(web): adjustments per PR review comments 2021-06-22 13:21:49 +07:00
Darcy Wong
ccc2ecaddb fix(web): Set optional properties in OptionType 2021-06-20 09:05:48 +07:00
Darcy Wong
473b0b44be fix(web): And attachType assignment 2021-06-19 07:44:55 +07:00
Darcy Wong
e7d35a798d fix(web): Fix attachType enumeration 2021-06-19 07:43:47 +07:00
Darcy Wong
221f50ac0d
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2021-06-19 07:24:55 +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
jahorton
7d69972cb4 fix(web): highlighting shouldn't flicker 2021-06-17 14:34:43 +07:00
Darcy Wong
d762c80125 chore(web): Adjust call in languageUnavailable 2021-06-17 13:08:44 +07:00
Darcy Wong
b2636603d8 feat(web): Add option useAlerts to control alerts() 2021-06-17 13:03:56 +07:00
jahorton
dc4532ecb3 fix(web): base key rehighlighting during subkey event when embedded 2021-06-17 12:13:02 +07:00
Darcy Wong
8633c07516 chore(web): More cleanup
* Clarify TODO
* Consolidate addKeyboardsForLanguage() call in commonHeader.js
2021-06-17 10:53:58 +07:00
jahorton
8794f7d018 change(web): allows passive cancel for subkey promises 2021-06-17 09:37:34 +07:00
Darcy Wong
d599a406f3
Apply suggestions from code review
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2021-06-17 08:58:08 +07:00
Joshua Horton
b864c289bf
Merge pull request #5290 from keymanapp/fix/web/touch-move-cancellation
fix(web): touch-move cancellation
2021-06-17 08:33:31 +07:00
Darcy Wong
d7d5ad085d chore(web): Update preamble 2021-06-16 21:44:02 +07:00
Darcy Wong
e81a7c1611 fix(web): Fix return of nested promises 2021-06-16 17:57:17 +07:00
jahorton
7c08d9b660 fix(web): forgotten null guard 2021-06-16 16:13:28 +07:00
jahorton
a8e051b6f4 refactor(web): wraps embedded subkey selection with Promise 2021-06-16 15:17:17 +07:00
jahorton
e347c423bf refactor(web): wraps in-browser subkey selection with Promise 2021-06-16 15:17:06 +07:00
jahorton
b604a1c5b0 docs(web): comment tweak 2021-06-16 10:28:17 +07:00
jahorton
f80ab02888 fix(web): touch-move cancellation 2021-06-16 10:22:09 +07:00
Darcy Wong
59f26a0e64 chore(web): Remove Error return type 2021-06-16 09:26:59 +07:00
jahorton
4c5500d026 refactor(web): osk key highlighting 2021-06-16 09:20:43 +07:00
jahorton
92a17542ab refactor(web): special char defn site; used only by keys 2021-06-16 08:47:40 +07:00
jahorton
0566f435d9 refactor(web): osk key class defs -> separate files 2021-06-16 08:39:53 +07:00
jahorton
3de1686cd0 chore(web): Merge branch 'refactor/web/keytip-abstraction' into refactor/web/subkey-popup-encapsulation 2021-06-16 08:22:47 +07:00
jahorton
95ce38ee16 chore(web): Merge branch 'master' into refactor/web/keytip-abstraction 2021-06-16 08:22:06 +07:00
jahorton
6c90a37a51 chore(web): adjustments for PR review comments 2021-06-16 08:21:39 +07:00
Joshua Horton
30b30cb3f8
Merge pull request #5280 from keymanapp/refactor/web/key-event-model
refactor(web): VisualKeyboard - key event model
2021-06-16 08:13:51 +07:00
Joshua Horton
aff97ac3ae
Merge pull request #5279 from keymanapp/refactor/web/vkbd-layout-calc-simplification
refactor(web): OSK layout calculations - simplification
2021-06-16 08:13:38 +07:00