Commit graph

528 commits

Author SHA1 Message Date
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
Marc Durdin
f836574cbc chore: use keyman.com instead of keyman-staging.com
Fixes #7227.

We want to use keyman.com for now even for alpha builds, as
keyman-staging.com is going to be used for transition to Docker-based
hosting, and it will be problematic to try and share that process with
alpha builds.
2022-09-08 14:32:39 +10:00
Marc Durdin
158e815ec5 chore(common): fix path for mac setup build 2022-07-31 08:12:23 +10:00
Marc Durdin
26881d603a chore(mac): update setup/build to include build-utils.sh
shellHelperFunctions.sh currently needs build-utils.sh sourced first in
order to parse. As we are planning to merge these two scripts, I am okay
with this for now. But we need to make sure that prerequisite is met for
now.

I ran the following command to find scripts that referenced
shellHelperFunctions.sh but not build-utils.sh:

  grep -L build-utils.sh $(grep -lR shellHelperFunctions --include='*.sh' .)

The following files were found:

  ./mac/bashHelperFunctions.sh
  ./mac/setup/build.sh
  ./resources/build/history/history-utils.sh

* bashHelperFunctions.sh has only a comment reference, so it's okay.
* mac/setup/build.sh I have reworked to include build-utils.sh.
* history-utils.sh is used only by ios/tools/prepRelease.sh, and that
  script already includes build-utils.sh.
2022-07-30 13:59:31 +10:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
Marc Durdin
0730098236 chore(ios): update ios/macos build scripts to log scripts
Adds run-xcodebuild function to wrap xcodebuild calls to keep logging
and error handling consistent. Currently used only by the iOS build; the
macOS build has a corresponding execBuildCommand function which does
pretty much the same thing (changing that would belong in a separate PR
I think and low priority.)
2022-06-24 11:37:46 +10:00
sgschantz
bf95a246a5 added Spanish es-419 localization to Mac project 2022-05-24 14:40:13 +07:00
Darcy Wong
d247e475df chore(common): Update crowdin strings for Spanish (Latin America) 2022-05-24 08:37:34 +07:00
Darcy Wong
7c3de5bbc3 chore(common): Merge remote-tracking branch 'origin/beta' into chore/common/crowdin-pl 2022-05-11 14:28:50 +07:00
sgschantz
df385d4d71 add Polish localization to iOS and Mac projects 2022-05-09 20:29:39 +07:00
sgschantz
023ecc9faf add italian localization to iOS and Mac projects 2022-05-09 19:27:40 +07:00
Darcy Wong
7773cdfe22 chore(common): Add crowdin strings for Polish 2022-05-09 12:41:36 +07:00
Darcy Wong
384f8befcb chore(common): Add crowdin strings for Italian 2022-05-09 11:04:12 +07:00
sgschantz
860f66ac2c add fula localization to project 2022-04-25 16:41:57 +07:00
Darcy Wong
e3e8e63a27 chore(common): Update Crowdin strings for Fula 2022-04-25 14:34:44 +07:00
Darcy Wong
1e42d360c6
Merge pull request #6509 from keymanapp/chore/common/crowdin-pt
chore(common): Add Crowdin strings for Portuguese (pt-PT)
2022-04-14 06:11:02 +07:00
Darcy Wong
6b2a71a76e
Merge pull request #6501 from keymanapp/chore/common/crowdin-km-spacebar
chore(common): Update km strings
2022-04-11 15:12:19 +07:00
sgschantz
105f25e4f2 enabled Portugese (pt-PT) localization to Keyman for Mac project 2022-04-08 15:29:27 +07:00
Darcy Wong
229c314ac5 chore(common): Use pt-PT for iOS and macOS strings 2022-04-08 14:11:56 +07:00
Darcy Wong
3fae9cf1c4 chore(common): Remove pt files 2022-04-08 13:51:58 +07:00
Darcy Wong
f0e41833c4 chore(common): Add Crowdin strings for Portuguese 2022-04-08 11:36:18 +07:00
Darcy Wong
8770c705cb chore(common): Update Crowding strings for Azerbaijani 2022-04-08 10:01:23 +07:00