Commit graph

4544 commits

Author SHA1 Message Date
Keyman Build Agent
40df30749c auto: increment master version to 15.0.203 2022-02-24 13:02:56 -05:00
rc-swag
9eadbd6425
Merge pull request #6211 from keymanapp/fix/core/6204/capslock-key-state-ignored
fix(common/core/desktop): Add num and scroll lock mask to VKeyToChar
2022-02-24 17:46:57 +10:00
Marc Durdin
bf2270aa69 chore(web): add smp tests for text selection 2022-02-24 15:59:16 +11:00
Marc Durdin
9b84af8a2f fix(web): add unit tests for selection
This adds a set of unit tests for the TextArea element, initially, to
verify that selection and context are working as expected.
2022-02-24 11:25:21 +11:00
Marc Durdin
cacbbee5cc fix(web): properly handle selection
Relates to #5853 and others.

Selection management was not working properly with the various
OutputTargets:

1. When there is a non-empty selection, rules have no context -- it's
   like new text.
2. Backspace over a selection deletes just the selection.
3. Typing a character replaces the selection, of course, and collapses
   the caret to the end of the new text.
4. `hasSelection` is a very strange name for `OutputTarget` descendants.
   It doesn't mean "has an active selection" but rather, kinda means
   "supports selection internally".
5. Added `isSelectionEmpty` which is used for some of the new selection
   rules above.

Note that the `touchAlias` OutputTarget class does not currently support
selection. I hope we can deprecate `touchAlias` with the use of
`inputMode` (#3030) in the future, rather than adding support for
selection.
2022-02-23 15:12:58 +11:00
Marc Durdin
addcad9f76 fix(web): further selection tweaks to mocks 2022-02-23 15:12:23 +11: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
Marc Durdin
6cd0f5d49a chore: add web_context_tests keyboard 2022-02-22 10:41:42 +11:00
Keyman Build Agent
de8a1fe220 auto: increment master version to 15.0.202 2022-02-21 13:02:21 -05:00
Marc Durdin
757b6a3e09
Merge pull request #6259 from keymanapp/fix/developer/6209-npm-publish-alpha-to-stable
fix(developer): npm publish with correct tier
2022-02-21 06:25:02 +07:00
Keyman Build Agent
149fba62b6 auto: increment master version to 15.0.201 2022-02-20 13:02:45 -05:00
Keyman Build Agent
10e7e4a4c4 auto: increment master version to 15.0.200 2022-02-18 13:13:14 -05:00
Keyman Build Agent
93c19d9adb auto: increment master version to 15.0.199 2022-02-13 13:02:58 -05:00
Marc Durdin
3a3736abaa fix(developer): npm publish with correct tier
Fixes #6209.

Regression introduced in #6073. Cleanup of tier information in these
build scripts accidentally also deleted the setup of npm_dist_tag
variable.
2022-02-13 14:18:42 +07:00
Keyman Build Agent
a1e1ab86c0 auto: increment master version to 15.0.198 2022-02-12 13:03:29 -05:00
Keyman Build Agent
be12166f49 auto: increment master version to 15.0.197 2022-02-11 13:02:23 -05:00
Ross
1d2584bc64 fix(common): mask modifiers in process event call
Ensure that when calling the common core process_event call that the
modifiers variable only includes the Bits the core supports
2022-02-11 16:25:58 +10:00
Ross
cd48948e08 fix: update code comments to match change 2022-02-11 16:24:54 +10:00
Ross
2b99aa7f0c fix: add num and scroll lock mask to VKeyToChar 2022-02-11 16:24:41 +10:00
Keyman Build Agent
dd1fbe1cac auto: increment master version to 15.0.196 2022-02-09 13:02:42 -05:00
Keyman Build Agent
6eaf6487d1 auto: increment master version to 15.0.195 2022-02-08 13:02:53 -05:00
Keyman Build Agent
d177fb3902 auto: increment master version to 15.0.194 2022-02-07 13:02:51 -05:00
Keyman Build Agent
9d12fae415 auto: increment master version to 15.0.193 2022-02-04 13:02:21 -05:00
Keyman Build Agent
c8e00045fb auto: increment master version to 15.0.192 2022-02-03 13:02:38 -05:00
Keyman Build Agent
fbd9a0d6fa auto: increment master version to 15.0.191 2022-02-02 13:02:14 -05:00
Keyman Build Agent
755be48876 auto: increment master version to 15.0.190 2022-02-01 13:02:30 -05:00
Keyman Build Agent
3ea411280a auto: increment master version to 15.0.189 2022-01-28 13:03:59 -05:00
Marc Durdin
b428a8ab97 chore(developer): Merge branch 'master' into feat/developer/node-based-debugger-server 2022-01-28 16:07:19 +11:00
Keyman Build Agent
ec3cfc3941 auto: increment master version to 15.0.188 2022-01-27 13:02:51 -05:00
rc-swag
229ba429c2
Merge pull request #5936 from keymanapp/feat/windows/imx-support-common-core
feat(windows): Keyman Core Integration - Support for IMX DLLs 🥑
2022-01-27 09:38:33 +10:00
Keyman Build Agent
a3b59448de auto: increment master version to 15.0.187 2022-01-26 13:01:27 -05:00
Keyman Build Agent
e4694fe298 auto: increment master version to 15.0.186 2022-01-25 13:02:21 -05:00
Ross
61c64c373b chore(windows): Merge branch 'master' into feat/windows/imx-support-common-core 2022-01-25 15:41:36 +10:00
Keyman Build Agent
d886cff0a7 auto: increment master version to 15.0.185 2022-01-24 13:01:35 -05:00
Ross
949cb7da40 chore(windows): Merge branch 'master' into feat/windows/6099-emit-keystrokes-from-imx 2022-01-24 16:05:48 +10:00
Ross
674c9e5d07 feat(windows): fix unused variable error 2022-01-24 11:21:25 +10:00
Ross
5aecca8314 feat(windows): remove extra qual from header 2022-01-24 11:09:32 +10:00
Keyman Build Agent
291e0db232 auto: increment master version to 15.0.184 2022-01-21 13:01:34 -05:00
Ross
9dd342eace feat(windows): Turn imx synthesised actions to emti keystroke action 2022-01-21 14:12:00 +10:00
Marc Durdin
9c5b126956 chore(developer): Merge branch 'master' into feat/developer/node-based-debugger-server 2022-01-21 14:45:30 +11:00
Keyman Build Agent
b55d7fc0cf auto: increment master version to 15.0.183 2022-01-20 19:58:29 -05:00
rc-swag
02e2cc7773
feat(windows): code review suggestion
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-01-20 15:05:35 +10:00
Ross
12b4b5cfe3 feat(windows): Check imx_list is allocated before delete 2022-01-20 15:02:35 +10:00
Ross
8c8859bcf1 feat(windows): add process_queued_actions 2022-01-20 14:33:00 +10:00
rc-swag
4ca65e4fdb
feat(windows): commit suggestions github
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-01-20 09:43:22 +10:00
Keyman Build Agent
89e48cd688 auto: increment master version to 15.0.182 2022-01-19 13:01:27 -05:00
Ross
1b624c3d56 feat(windows): Address Review comments 2022-01-19 13:47:49 +10:00
Keyman Build Agent
ee6256edb2 auto: increment master version to 15.0.181 2022-01-18 13:01:24 -05:00
rc-swag
45d0abd81c
feat(windows): Improve ContextItemsFromAppContext
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-01-18 15:16:13 +10:00
rc-swag
87e34147e6
feat(windows): apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-01-18 09:25:03 +10:00