Marc Durdin
0c0bb420b5
Merge pull request #5963 from keymanapp/feat/web/3621-newcontext-group
...
feat(web): Start of Sentence support - part 1 🕊
2022-01-17 12:04:29 +11:00
Marc Durdin
3f35cc0bf8
chore(web): Merge branch 'master' into feat/web/3621-newcontext-group
2021-11-29 10:22:22 +11:00
Marc Durdin
e98930dedb
Merge branch 'master' into fix/web/5779-font-scaling-in-osk
2021-11-29 09:12:15 +11:00
Marc Durdin
45821fcb1b
fix(web): adjust tablet font scaling
...
This makes two corrections:
1. Removed an obsolete test for screen size based on dpi, which is
unreliable, meant that we had been treating many Android tablets as
phones (domManager.ts).
2. Font scale for Android tablets had some incorrect assumptions around
keyboard height and devicePixelRatio, which I was able to simplify
into a fixed ratio, and was much better across all devices I
tested (however, all emulated in Chrome).
2021-11-29 08:56:41 +11:00
Marc Durdin
d6982898a8
fix(web): restore dragEnd function
...
Relates to #5947 .
I resolved a merge conflict in #5947 in the wrong direction and
accidentally deleted the `dragEnd` function. This restores it.
2021-11-29 07:40:04 +11:00
Marc Durdin
c7b83f9f1f
Merge branch 'master' into fix/web/5944-save-focus-for-eurolatin-osk
2021-11-29 06:35:53 +11:00
Marc Durdin
f300e81381
Merge branch 'master' into fix/web/5909-shorten-setfocustimer
2021-11-24 07:11:34 +11:00
Marc Durdin
dcedb15b69
chore: cleanup comments and defines
2021-11-23 16:08:19 +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
9162d575ce
fix(web): support saving focus for custom OSK interactions
...
Fixes #5944 .
If a custom OSK, such as sil_euro_latin, calls `keymanweb.KSF()` or
`keymanweb.saveFocus()`, this ensures that the next focus change is
ignored, which prevents the OSK from being dismissed as soon as it is
clicked on.
This is a regression, probably arising in version 10.0.
Note: `_SelectionChange` is no longer used or referenced, so I removed
it as part of this fix.
2021-11-19 12:58:53 +11:00
Marc Durdin
cceb2f35b5
fix(web): shorten setFocusTimer()
...
Fixes #5909 .
The `setFocusTimer()` delay was 1000ms. However, it seems that a much
shorter delay accomplishes the same outcome for switching between
controls, as the important factor is to block asynchronously-arriving
events from cancelling the OSK / focus controls for touch alias
elements.
I have set the delay to 50ms. This is fast enough that a click in a
control followed by a click on the page area will always cancel the OSK,
but gives the space needed for queued focus/blur events have time to be
processed before cancelling the timer.
2021-11-19 11:22:21 +11:00
Marc Durdin
c2c7e00e94
fix(web): reset scroll anchor on touchend
...
Fixes #5313 .
2021-11-17 10:37:01 +11:00
jahorton
09f4aed77e
chore(web): Merge branch 'refactor/web/active-element-integrations' into refactor/web/osk-activation-and-visibility
2021-09-21 09:59:46 +07:00
jahorton
a1516d194d
fix(web): focus-timer preserves activation on Android
2021-09-21 09:23:11 +07:00
jahorton
ffc381fcb6
chore(web): Merge branch 'refactor/web/active-element-integrations' into refactor/web/osk-activation-and-visibility
2021-09-17 08:38:49 +07:00
jahorton
430b636b22
fix(web): independent keyboard & touch-focus management
2021-09-15 10:28:58 +07:00
jahorton
881a2759f2
chore(web): Merge branch 'refactor/web/active-element-integrations' into refactor/web/osk-activation-and-visibility
2021-09-03 12:45:51 +07:00
jahorton
68425763c6
fix(web): fixes touch-mode focusing issue in unit tests
2021-09-03 12:42:34 +07:00
jahorton
fe797fe657
refactor(web): osk now controls own display state
2021-09-01 09:44:30 +07:00
jahorton
a495bf421e
chore(web): minor touch-up
2021-09-01 09:44:02 +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
jahorton
0a33ed863d
chore(web): addresses review comments
2021-07-23 11:48:51 +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
jahorton
c91d2f3685
refactor(web): related adjustments for full KMW
2021-05-28 13:14:43 +07:00
jahorton
125e6f3590
docs(web): adds requested comment
2021-05-25 10:06:30 +07:00
jahorton
439d05cf88
fix(web): better multitouch handling
2021-05-24 11:40:41 +07:00
jahorton
9f071bb906
change(web): null guards for findTouchAliasTarget uses
2021-04-21 09:08:28 +07:00
jahorton
e995a5cde1
docs(web): adjusts comments according to PR review
2021-04-20 14:01:46 +07:00
jahorton
0db5e9dc6d
change(web): only check for touch-aliases if touchable
2021-03-30 10:00:41 +07:00
jahorton
6c275ca9d3
change(web): adds code to assist diagnosis of #4797
2021-03-30 09:43:50 +07:00
jahorton
8999eecfc9
fix(web): event handling for TouchAliasElement's blinking caret
2021-03-10 13:12:30 +07:00
jahorton
925bbc1f56
fix(web): supplies missing (optional) argument to prevent warnings
2021-01-11 10:01:36 +07:00
jahorton
8c0f81f8ba
refactor(web/engine): headless LanguageProcessor (aside from lmlayer)
2020-04-09 14:51:49 +07:00
jahorton
2f6e1e42af
refactor(web/engine): initial ModelManager split
2020-04-09 09:22:35 +07:00
jahorton
7a04baa9a5
change(web/engine): kbdProcessor.core => core.keyboardProcessor
2020-04-06 13:17:32 +07:00
jahorton
52e3f7e977
refactor(web): adds intermediate DOM-aware OutputTarget abstraction
2020-04-03 10:31:35 +07:00
Joshua Horton
b438291cb0
Merge branch 'master' into refactor/web/engine/keyboard-api-dom-split-start
2020-04-03 08:26:45 +07:00
jahorton
948f55c8ac
fix(web): missed a few HTMLElement|Document spots
2020-03-31 15:39:34 +07:00
jahorton
6f366f9f80
fix(web): ensures activeElement is always an element, not iframe doc. Fixes #539
2020-03-31 15:23:43 +07:00
jahorton
8fa4b1eaf1
refactor(web/engine): moves getOutputTarget() => DOM space
2020-03-31 11:48:14 +07:00
jahorton
27564418e9
change(web/engine): Addresses PR comments
2020-03-29 21:53:30 +07:00
jahorton
944d93aa62
refactor(web/engine): reworks resetContext, adds OutputTarget version
2020-03-27 15:56:29 +07:00
jahorton
fdb6ba0c4f
refactor(web/engine): moves kbd state management to Processor
2020-03-27 15:45:09 +07:00
jahorton
3ed9de2000
refactor(web): swallowKeypress moved (back) to DOM section
2020-03-27 09:51:49 +07:00
jahorton
bf9ce8c1a6
refactor(web/engine): starts DOM pre-processor
...
fix(web): Ensures dev resources continue working
2020-03-26 13:01:14 +07:00
jahorton
fc5e8f2449
refactor(web/engine): renames old DOM-related sources
2020-03-26 10:05:47 +07:00