Commit graph

7 commits

Author SHA1 Message Date
jahorton
858f9bc8fa chore(web): roots out many IE-related blocks 2022-05-31 09:11:17 +07:00
Marc Durdin
ac2cc93f2a fix(web): add readonly mode for rule behavior finalization
Relates to #5853.

Two things happened here:

1. Construction of Mocks made an assumption that the selection should
   always be deleted (outputTarget.ts:363). However, for NewContext and
   PostKeystroke processes, we don't want to change anything.

2. Even if nothing is changed, the transcription would emit what is
   in theory a no-op ruleTransform (insert="", deleteLeft=0,
   deleteRight=0). But apps would treat this as deleting the selection.

This fix goes a little broader than I would have preferred, but adds a
readonly mode to the transcription and mock model, so that we can
control explicitly when changes are applied to the text store.
2022-02-22 10:42:20 +11:00
jahorton
6971f09c4d refactor(web): activeElement, lastActiveElement as properties 2021-09-01 09:44:01 +07:00
jahorton
c91d2f3685 refactor(web): related adjustments for full KMW 2021-05-28 13:14:43 +07:00
jahorton
1c52376f03 fix(web): prevents predictive text engine init if workers aren't available 2021-01-13 13:56:27 +07:00
jahorton
7654c26c8c refactor(web/engine): InputProcessor polish, prep 2020-04-09 15:08:18 +07:00
jahorton
6020ffee0c refactor(web/engine): LanguageProcessor.canEnable 2020-04-09 09:50:35 +07:00