Commit graph

10527 commits

Author SHA1 Message Date
Darcy Wong
63d92cd05b
Merge pull request #3923 from keymanapp/fix/fv/android/force-keyboard-setup
fix(android/oem): Check keyboard selected  before allowing setup
2020-11-26 11:06:06 +07:00
Marc Durdin
59aa301ea4 fix(oem/fv/android): tweaked check boxes
I opted to make the checkbox invisible when the step has not been
completed. This seemed to look a little clearer when I tried it.
2020-11-26 10:48:10 +11:00
Keyman Server
922ac7953c
Merge pull request #3956 from keymanapp/auto/version-master-14.0.190
auto: increment master version to 14.0.190
2020-11-26 05:01:54 +11:00
Keyman Build Agent
5f32b941ad auto: increment master version to 14.0.190 2020-11-25 13:01:09 -05:00
Darcy Wong
1d580360d7
Merge pull request #3947 from keymanapp/chore/common/cleanup-lmlayer-history
chore(common/resources): Part 3 of additional HISTORY.md cleanup
2020-11-25 19:19:48 +07:00
Marc Durdin
7df7d78749
Merge pull request #3952 from keymanapp/chore/mac/iso_section_key_code
chore(mac): fix iso section key code
2020-11-25 19:46:45 +11:00
Marc Durdin
0c67dbf5dd
Merge pull request #3949 from keymanapp/feat/mac/1953-user-controllable-legacy-app-list
feat(mac): user-controllable legacy app list
2020-11-25 19:46:35 +11:00
Marc Durdin
78816cbe6a
Merge pull request #3946 from keymanapp/fix/mac/3939-arrow-keys-reset-context
fix(mac): arrow keys now reset context
2020-11-25 19:05:39 +11:00
Marc Durdin
0981473514 chore(mac): fix iso section key code 2020-11-25 18:56:23 +11:00
Darcy Wong
bb424b8f50 chore: Split (android,ios) scope
* Split (android,ios) scopes into separate lines so that App store submission won't get blocked
* fix chore(mac)
2020-11-25 14:26:52 +07:00
Darcy Wong
f19cfff3f4 chore: address review comments 2020-11-25 14:15:57 +07:00
Joshua Horton
ca530f260f
Merge pull request #3948 from keymanapp/fix/web/default-attachment-behavior
fix(web): default attachment behavior
2020-11-25 14:07:19 +07:00
Darcy Wong
1664c8439e chore: cleanup common scopes 2020-11-25 13:07:38 +07:00
Marc Durdin
01b192796a feat(mac): user-controllable legacy app list
Fixes #1953.

Makes it possible to specify additional apps that need 'legacy' handling
without requiring an updated build of Keyman for Mac. The list should be
stored in user defaults under the `KMLegacyApps` key. It can be viewed
with the command:

```
defaults read keyman.inputmethod.Keyman KMLegacyApps
```

And updated with

```
defaults write keyman.inputmethod.Keyman KMLegacyApps -array value1 value2 ...
defaults write keyman.inputmethod.Keyman KMLegacyApps -array-add value1 value2 ...
```

Each entry should be a regex that matches the client app id.

For example:

```
defaults write keyman.inputmethod.Keyman KMLegacyApps -array com.microsoft.Word '^com.github.atom$'
```

(Note for purity, the `.` should be escaped in the regex but it'll
actually be fine without...)

This commit also adds the `keymanDataPath` method on
`KMInputMethodAppDelegate`, so we can place additional configuration
data there in the future (as opposed to in the shared config which is
less easy for users to edit.)
2020-11-25 16:56:52 +11:00
jahorton
af7be3f1dc fix(web): default attachment behavior 2020-11-25 12:51:34 +07:00
Darcy Wong
c1e74dd51e chore: cleanup web/utils 2020-11-25 12:47:16 +07:00
Darcy Wong
605656adc4 chore: cleanup lmlayer scopes 2020-11-25 12:02:37 +07:00
Marc Durdin
daff70bebf fix(mac): arrow keys now reset context
Fixes #3939.

Arrow keys, function keys and a handful of other keys should trigger a
context reload (for legacy apps, that means a context flush). This means
that deadkeys are also flushed when any of these keys are pressed, in
the same way as a Command key or a mouse click already did.
2020-11-25 13:15:12 +11:00
Marc Durdin
285319ba37
Merge pull request #3878 from keymanapp/feat/developer/3863-new-touch-layout-key-tags
feat(developer): add new touch layout special tags
2020-11-25 12:51:36 +11:00
Marc Durdin
c4871c981c
Merge branch 'master' into feat/developer/3863-new-touch-layout-key-tags 2020-11-25 12:51:14 +11:00
Marc Durdin
48a3d0c9fa
Update windows/src/developer/TIKE/compile/CompileKeymanWeb.pas
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2020-11-25 12:50:45 +11:00
Marc Durdin
6a4038497b
Merge pull request #3944 from keymanapp/fix/mac/3935-legacy-mode-for-java
fix(mac): turn on legacy mode for Java apps
2020-11-25 12:50:03 +11:00
Marc Durdin
44399fc594
Merge pull request #3924 from keymanapp/feat/mac/2601-support-102nd-key
feat(mac): Add support for "ISO" keyboard layouts
2020-11-25 12:49:53 +11:00
Marc Durdin
506a2b52f3
Merge pull request #3933 from keymanapp/fix/mac/nsstring-to-nsurl
fix(mac/engine): wrong variable type
2020-11-25 12:49:31 +11:00
Marc Durdin
0f831f7df7
Merge pull request #3932 from keymanapp/fix/mac/build-sign-post-tweaking-plist
fix(mac): re-sign files post plist update
2020-11-25 12:49:19 +11:00
Marc Durdin
044631cd54 fix(mac): turn on legacy mode for Java apps
Relates to #3935.

This switches Java apps into legacy mode. However, Java itself will need
patching to support Keyman, as it makes assumptions about input methods,
including matching specific input methods by name, before enabling its
complex text support.

I am in process of submitting a bug report and may try and submit a
patch (although the process seems a little convoluted). It requires a
change to a single file, AWTView.m, with the following diff (against
JDK 16.0):

diff --git a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m
index 3e80b5a6cf3..2ae1f4f3f12 100644
--- a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m
+++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m
@@ -263,6 +263,16 @@ - (void) keyDown: (NSEvent *)event {
     fProcessingKeystroke = YES;
     fKeyEventsNeeded = YES;

+    if([(NSString *)kbdLayout containsString:@"keyman"]) {
+        // Keyman handles all key events; none should be
+        // passed through as default before Keyman processes them
+        fKeyEventsNeeded = NO;
+    }
     // Allow TSM to look at the event and potentially send back NSTextInputClient messages.
     [self interpretKeyEvents:[NSArray arrayWithObject:event]];

@@ -960,7 +989,9 @@ - (void) insertText:(id)aString replacementRange:(NSRange)replacementRange

     if ((utf16Length > 2) ||
         ((utf8Length > 1) && [self isCodePointInUnicodeBlockNeedingIMEvent:codePoint]) ||
-        ((codePoint == 0x5c) && ([(NSString *)kbdLayout containsString:@"Kotoeri"]))) {
+        ((codePoint == 0x5c) && ([(NSString *)kbdLayout containsString:@"Kotoeri"])) ||
+        ([(NSString *)kbdLayout containsString:@"keyman"])
+        ) {
         aStringIsComplex = YES;
     }
2020-11-25 09:59:10 +11:00
Keyman Server
36075815aa
Merge pull request #3943 from keymanapp/auto/version-master-14.0.189
auto: increment master version to 14.0.189
2020-11-25 05:01:58 +11:00
Keyman Build Agent
976d47a006 auto: increment master version to 14.0.189 2020-11-24 13:01:13 -05:00
Darcy Wong
0e574ae9f3
Merge pull request #3942 from keymanapp/chore/common/additional-cleanup-history
chore(common): additional cleanup to HISTORY.md
2020-11-24 16:50:25 +07:00
Darcy Wong
acd3e9c16f chore(common): Fix one more linux line 2020-11-24 14:01:13 +07:00
Joshua Horton
6a29257b49
Merge pull request #3941 from keymanapp/fix/web/osk-errors
fix(web): adds null guards for two Sentry errors
2020-11-24 11:43:20 +07:00
Darcy Wong
3fdbac7005 chore(common): additional cleanup to HISTORY.md
Follow-on to #3926

* Use `oem/fv/ios` and `oem/fv/android` for FV changes
* Add missing commit types
* Changes `deps` to use scopes (dependabot changes)
2020-11-24 11:30:51 +07:00
Joshua Horton
2db93b92d0
Merge pull request #3937 from keymanapp/chore/web/engine/ltr-codes-and-mapping
chore(web): adds LTREnter, LTRBkSp, and associated layout mapping
2020-11-24 10:51:40 +07:00
jahorton
37619d7f03 fix(web): Fixes #3930 - adds keySpec null guard during click processing 2020-11-24 10:33:11 +07:00
jahorton
d264fa5487 fix(web): Fixes #3931 - adds in-rotation null guard 2020-11-24 10:22:26 +07:00
jahorton
afc1288140 chore(web): adds LTREnter, LTRBkSp, and associated layout mapping 2020-11-24 10:08:50 +07:00
Darcy Wong
752b5e98f8 fix(android/oem): Cleanup CSS
Per review comments:
* Don't upper-case button text
* Fix vertical alignment
* Use CSS to toggle opacity
2020-11-24 10:04:09 +07:00
Joshua Horton
dd91ce24ae
Merge pull request #3925 from keymanapp/fix/ios/engine/banner-inconsistency
fix(ios/engine): banner inconsistency
2020-11-24 08:22:57 +07:00
jahorton
7cfcb9fa6e docs(web): adds minor comment regarding change 2020-11-24 08:22:23 +07:00
Joshua Horton
3a90a68101
Merge pull request #3927 from keymanapp/fix/ios/engine/refreshLayout-guard
fix(android, ios): adds null guard to refreshLayouts call
2020-11-24 08:13:04 +07:00
Darcy Wong
6efcaf9f23
Merge pull request #3926 from keymanapp/chore/cleanup-history-for-commit-types
chore(common): Clean up commit types in HISTORY.md
2020-11-24 06:17:25 +07:00
Darcy Wong
dfe17415f8
Update HISTORY.md
Co-authored-by: Marc Durdin <marc@durdin.net>
2020-11-24 06:17:04 +07:00
Marc Durdin
18ac63eaf3
Merge pull request #3921 from keymanapp/fix/windows/sentry-some-exceptions-skipped
fix(windows): sentry range check error
2020-11-24 09:23:21 +11:00
Marc Durdin
d849c532de chore(mac): address review comments
* Make less WET
* Add comments
* Fix mixed up key labels
2020-11-24 08:27:37 +11:00
Marc Durdin
c8000c2d9c chore: cleanup 2020-11-24 08:24:30 +11:00
Marc Durdin
e32ab796bd feat(mac): Add support for "ISO" keyboard layouts
Fixes #2601.

This PR adds support for the 102nd key as found on European layouts. It
does not however reshape the Enter key and move the BKSLASH key, as that
is a much bigger job; functionally this makes it possible to press the
102nd key, which was the biggest gap.
2020-11-24 08:24:30 +11:00
Marc Durdin
b4f08b3604 chore: fix parameters 2020-11-24 08:10:50 +11:00
Marc Durdin
f692af2545 chore: fix test 2020-11-24 08:08:33 +11:00
Marc Durdin
258fed6511 fix: wrong variable type 2020-11-24 08:04:30 +11:00
Marc Durdin
e41df6f838 fix(mac): re-sign files post plist update
Cleans up a bunch of bits and pieces around the build process and makes
sure that files are re-signed after we update the Info.plist file.
2020-11-24 08:02:16 +11:00