Commit graph

549 commits

Author SHA1 Message Date
Marc Durdin
018fade40b chore(mac): use mac cp for -R ops
Because we don't know if mac BSD cp or GNU cp will be first on the path,
where there is ambiguity (e.g. with -R flag), we will use the macOS cp
command in /bin to ensure that we have consistent results. The
alternative would be to fixup each instance of the cp parameters so that
they work consistently with either cp command, but given these scripts
can run only on macOS, that seems unnecessary.

This replaces the earlier change in 97c6331b5.
2023-07-25 11:52:12 +07:00
Marc Durdin
857bad2b6c fix(mac): fix corrupt installer
Fixes #8533 after build agent maintenance put GNU coreutils cp on path
ahead of macOS /bin/cp. This subtly changed the behaviour of the `-R`
flag such that it copied the folder into a subfolder rather than copying
the contents of the folder into the destination folder:

Original layout:

```
Install Keyman.app/Contents/MacOS/
  applet
  textinputsource
  Keyman.app/
```

Corrupted layout:

```
Install Keyman.app/Install Keyman.app/Contents/MacOS/
  applet
  textinputsource
  Keyman.app/
```

Query: should we be rolling back the path changes so that /bin is first
on the path? I am concerned about other subtle changes in behaviour in
the macOS and iOS builds. Otherwise it feels like we may need to audit
the scripts in /mac, /ios (and possibly /common, /core, /web,
/resources) for potential changes.

Annoyed that it took me so long. Also annoying that macOS fails so
subtly when a parent folder has the .app extension in its name.
2023-07-25 11:52:12 +07:00
Marc Durdin
a3b8ac496a chore(mac): update stat path 2023-06-05 09:45:58 +07:00
Darcy Wong
786c319fca chore(common): Update Fula strings 2023-02-17 08:54:28 +07:00
Marc Durdin
cdc661f2d6
Merge branch 'beta' into cherrypick/common/crowdin-cs 2023-01-31 18:02:32 +11:00
Marc Durdin
31fbeec217
Merge branch 'beta' into chore/common/crowdin-sv 2023-01-31 17:59:52 +11:00
Marc Durdin
7fd0c8a39e
Merge branch 'beta' into chore/common/crowdin-uk 2023-01-31 17:56:39 +11:00
Marc Durdin
526aead54f
Merge pull request #8072 from keymanapp/chore/common/crowdin-ru
chore(common): Check in crowdin for Russian
2023-01-31 17:54:21 +11:00
Darcy Wong
78955edf20 chore(common): Update crowdin strings for Shuwa (Latin) 2023-01-26 09:34:43 +07:00
Darcy Wong
1a4512d0eb chore(common): Add crowdin strings for Czech
chore(common): Add crowdin strings for Czech
2023-01-26 07:31:47 +07:00
Darcy Wong
f2cf341a68
Merge branch 'beta' into chore/common/crowdin-sv 2023-01-25 21:27:09 +07:00
Darcy Wong
dbe3d17b8a
Merge branch 'beta' into chore/common/crowdin-uk 2023-01-25 21:24:01 +07:00
Darcy Wong
1074af1023
Merge branch 'beta' into chore/common/crowdin-ru 2023-01-25 21:19:46 +07:00
sgschantz
7a140cdaf4 updated mac project settings to include Russian localization 2023-01-25 11:21:37 +07:00
sgschantz
d9d5a7cc02 updated mac project settings to include Ukranian localization 2023-01-25 10:10:53 +07:00
sgschantz
90ec0f0b1f updated mac project settings to include Swedish localization 2023-01-25 09:40:00 +07:00
sgschantz
f3901ae48d updated mac project settings to include Kannada localization 2023-01-24 14:27:26 +07:00
Darcy Wong
dce46c95ab chore(common): Check in crowdin for Ukrainian 2023-01-24 10:26:15 +07:00
Darcy Wong
0a626a9cb5 chore(common): Check in crowdin for Russian 2023-01-24 10:13:13 +07:00
Darcy Wong
2c02150054 chore(common): Add crowdin for Swedish 2023-01-24 09:33:42 +07:00
Darcy Wong
3dbd78a0ef chore(common): Add Crowdin strings for Kannada 2023-01-03 11:10:57 +07:00
Marc Durdin
83e2ebac2d
Merge pull request #7795 from keymanapp/fix/mac/7632-caps-inconsistent-with-core
fix(mac): Caps processing was not consistent with core
2022-11-28 18:43:30 +11:00
Darcy Wong
2001f98d86
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-11-23 07:39:24 +07:00
Marc Durdin
a45145ae3d fix(mac): Caps processing was not consistent with core
Fixes #7632.

If Caps Lock was on, rules that did not specify Caps Lock state were
not matched, for example:

```
+ [K_SLASH] > 'foo'
```

The truth table for matches is:

Event    |    Rule     | Result
---------|-------------|-----------
NCAPS    |    0        | match
NCAPS    |    CAPS     | no match
NCAPS    |    NCAPS    | match
CAPS     |    0        | match
CAPS     |    CAPS     | match
CAPS     |    NCAPS    | no match

(Internally, Keyman for Mac currently maps 0 to NCAPS on the event for
simplicity.)

The fix is to ignore the Event Caps Lock state if the rule specifies
neither `CAPS` nor `NCAPS`. If the rule specifies either of these
state masks, then the Caps component of the state mask must match.
2022-11-23 09:25:11 +11:00
Darcy Wong
c584f0cb45 chore(common): Add notes about bugfixes 2022-11-22 10:50:21 +07:00
Darcy Wong
f98b342fee chore(common): Update whatsnew for 16.0 2022-11-22 10:30:44 +07:00
Shawn Schantz
365d934ec9
Merge pull request #7762 from keymanapp/fix/ios/7476-right-alt
fix(mac): Enable right-alt/option key mapping
2022-11-22 08:51:57 +07:00
Shawn Schantz
ed78cfd339
Update mac/Keyman4MacIM/Keyman4MacIM/Privacy/PrivacyConsent.m
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-11-22 08:49:57 +07:00
Darcy Wong
cd27527646
Merge branch 'beta' into chore/common/crowdin-update-zhcn 2022-11-18 16:47:28 +07:00
sgschantz
6611e5f393 call completion handler when accessibility is already enabled 2022-11-18 08:32:23 +07:00
sgschantz
39a9456ec7 added ff-ng localization to mac project 2022-11-15 10:09:00 +07:00
sgschantz
59f875fcd7 added zh-cn localization to mac project 2022-11-15 09:06:04 +07:00
Darcy Wong
7ca7cb8d70 chore(common): Update crowin strings for Fulfulde 2022-11-14 10:27:30 +07:00
Darcy Wong
391eb402f3 chore(common): Update crowdin strings for Simplified Chinese 2022-11-14 09:56:52 +07:00
sgschantz
097af26e96 added transparent keyman system menu icon with high res version 2022-11-02 16:28:24 +07:00
Darcy Wong
d04893b638
Merge pull request #7558 from keymanapp/chore/help-16-0
chore(common): Update help references from 15.0 to 16.0
2022-10-28 07:32:04 +07:00
Darcy Wong
df0153f8f9
Merge pull request #7498 from keymanapp/chore/common/crowdin-nl
chore(common): Add crowdin strings for Dutch
2022-10-27 20:25:33 +07:00
Darcy Wong
5cf0ae6d64 chore(common): Update help references from 15.0 to 16.0 2022-10-27 13:05:38 +07:00
Darcy Wong
5b59cca37b chore(mac): Add privacy-alert-text string 2022-10-25 13:57:25 +07:00
Darcy Wong
1bc6e6a06f chore(common): Update crowdin strings for 16.0 2022-10-25 11:33:44 +07:00
Darcy Wong
8b781cdcff chore(common): Update crowdin strings for Amharic 2022-10-25 09:39:56 +07:00
sgschantz
0a9b3ebb61 add dutch(nl) localization to mac and ios project files 2022-10-24 09:34:10 +07:00
Darcy Wong
081c23c798 chore(common): Add crowdin strings for Dutch 2022-10-20 09:42:56 +07:00
sgschantz
0d644b48af modified security alert prompt 2022-10-17 10:58:59 +07:00
sgschantz
5e3d6ce650 jump to System Preferences after displaying privacy alert to user 2022-10-14 16:13:57 +07:00
sgschantz
23ac555e95 changed property and arg names for consistency, more comment cleanup 2022-10-03 09:35:32 +07:00
sgschantz
64ba679252 comment cleanup 2022-09-30 23:36:16 +07:00
sgschantz
fdeeada6bf delete icon for alert and use AppIcon 2022-09-30 17:34:10 +07:00
sgschantz
ae3b9c82bc improved comments and updated alert string 2022-09-25 17:21:45 +07:00
sgschantz
c6a6e32e11 add mechanism to check for required permissions and prompt the user before the system does 2022-09-25 16:18:07 +07:00