Commit graph

112 commits

Author SHA1 Message Date
sgschantz
19cb236fe5 fix(mac): open download info sheet from config window
Rather than opening from the keyboard download window
which is supposed to be closed by the download info
sheet. This prevents the download info sheet from
closing its own parent on which it depends.
2024-08-30 15:05:58 +07:00
Shawn Schantz
d6d9feb64c
Merge branch 'master' into fix/mac/9308-no-package-info 2024-08-30 12:55:23 +07:00
sgschantz
9ddb7ba329 change(mac): encapsulate active keyboards access in KMSettingsRepository 2024-08-30 09:38:58 +07:00
sgschantz
569a8a8a49 fix(mac): eliminate all use of deprecated API beginSheetModalForWindow
beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:
was deprecated in macOS 10.10 and replaced by
beginSheetModalForWindow:completionHandler:

The newer API automatically closes the sheet.
Explicitly closing the sheet also seemed to be causing
the parent windows to close.

Fixes: #9308
2024-08-29 15:38:00 +07:00
Shawn Schantz
930221376c fix(mac): show package info after keyboard install
Move to updated APIs that no longer require window dismissal.

Fixes: #9308
2024-08-27 04:19:51 +07:00
sgschantz
5364a741da change(mac): some refactoring
Mostly taking advantage of KMSettingsRepository so
that more of the UserDefaults changes happen through it
Still some refactoring remains for active keyboards list
2024-08-16 16:34:19 +07:00
sgschantz
b1685f5865 change(mac): use partial paths in settings
converts partial paths to full paths as needed
and vice-versa when moving between file
system access and referencing keyboards
in UserDefaults
2024-08-15 15:41:38 +07:00
Shawn Schantz
05918b5f04
Merge branch 'master' into change/mac/2542-store-keyboards-elsewhere 2024-08-09 14:38:33 +07:00
Shawn Schantz
8b408730b7 change(mac): uses Library directory instead of Documents
Write new key KMDataModelVersion in UserDefaults with
integer value that determines how data is expected to be stored.
Migrates existing Keyman data to new location if it was written
with an older (or no) version.

Fixes: #2542
2024-08-06 17:14:34 +07:00
Shawn Schantz
b435090a6f change(mac): migrates options and changes keyboards successfully 2024-08-05 16:43:02 +07:00
sgschantz
c2e2cf53c6 change(mac): successful migration but not loading from config 2024-08-02 15:21:56 +07:00
sgschantz
4fb5d74f49 change(mac): implemented data migration and settings path updates 2024-08-01 17:00:07 +07:00
sgschantz
bff17dc1c2 change(mac): customize menus after all views are created
rather than reading from disk and adding keyboards include
awakeFromNib, do so in applicationDidFinishLaunching
2024-07-31 10:52:34 +07:00
sgschantz
37dcacc0cb change(mac): add KMDataRepository class to handle data (keyboards) migration 2024-07-30 16:08:34 +07:00
Shawn Schantz
5488e32be2 change(mac): add class to encapsulate settings 2024-07-29 16:01:58 +07:00
sgschantz
59013ae478 change(mac): add custom sentry tags to provide crash context
still need to add breadcrumbs and remove test code
2024-06-15 17:24:34 +07:00
sgschantz
ab98086003 fix(mac): adopt unified logging APIs
remove all references to NSLog
adjust log level for some calls to os_log
Fixes #10997
2024-05-23 15:50:50 +07:00
sgschantz
aff9a0e157 fix(mac): use unified logging APIS
remove logDebugMessage API which calls NSLog and call os_log instead
2024-05-22 19:32:40 +07:00
sgschantz
e4f7f1d1a1 fix(mac): added unified logging to Keyman Engine for mac
first draft, need to remove some debug statements and replace
others that would be more useful
2024-05-21 12:45:17 +07:00
sgschantz
746149178a chore(mac): re-indenting to 2 spaces
phase two
2024-05-13 17:07:52 +07:00
sgschantz
0288b72c84 fix(mac): made osk keys visible again
set clipsToBounds to true for osk and osk key views
This property began defaulting to false with the update to
macOS 14 sonoma causing the osk keys to become so large
that they obscured the entire osk view.
Also replaced and few more deprecated properties and functions.
2024-05-10 14:49:34 +07:00
sgschantz
10b60006bd added lowLevelBackspaceCount, eliminated redundant keymanCode 0xFF event 2024-02-28 09:37:04 +07:00
sgschantz
71d4710d89 changes for review comments 2023-12-13 15:40:16 +07:00
sgschantz
27b1236d90 eventTap changes, add delay to queued text event 2023-12-08 11:40:21 +07:00
sgschantz
aace9fc9df proper unicode conversion when getting context stringthat containing SMP text; also other clean up in response to review comments 2023-10-30 12:29:51 +07:00
sgschantz
184f56c7aa use core context instead of locally managed context 2023-10-26 15:38:19 +07:00
sgschantz
18b0860316 change settings for core library name change and restore readPeristedOptions function name overwritten in merge 2023-10-26 09:59:17 +07:00
Shawn Schantz
b908c30b2c
Merge branch 'feature-macos-core' into feature/core/add-core-wrapper 2023-10-26 08:41:09 +07:00
Shawn Schantz
5d41ecf6c2
use zero-based loop when removing all keyboards from Input Menu
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-10-19 15:22:17 +07:00
sgschantz
6871e74d3a changed keyboards menu to dynamically update in Keyman section of the Input Menu and eliminated Keyboards submenu 2023-10-19 14:55:57 +07:00
sgschantz
cbe9ef7741 added logging to learn about menu execution 2023-10-17 09:11:21 +07:00
sgschantz
615c9c23d2 limit most log statements to debug mode 2023-10-16 15:26:13 +07:00
sgschantz
a28a7ac775 rename coreWrapper 2023-10-05 09:14:15 +07:00
sgschantz
682d99c2cb context simplification, legacy app determination integrated into TextCompatibilityCheck 2023-09-26 10:48:43 +07:00
sgschantz
df3c34a711 add back EventTap function to support left and right modifier keys, do not set NoCaps flag in calls to Core when Caps Lock is off 2023-08-24 14:06:49 +07:00
sgschantz
f57b934257 use helper method for string to unichar string 2023-08-16 15:53:42 +07:00
sgschantz
2cb7458829 successfully loading setting options in core -- not behaving predictably until null terminator added 2023-08-15 14:57:30 +07:00
sgschantz
4010c79bf9 handle PersistOption action; persisting but not loading at startup yet 2023-08-10 11:30:12 +07:00
sgschantz
b2dce47b3f update context with core when invalidated 2023-07-06 13:57:37 -04:00
sgschantz
16c6faf9c3 slight refactor of TextCompatibilityCheck and applying of operations to client 2023-05-30 10:49:37 +07:00
sgschantz
144f4e0b4f added KMActionOperation to batch text inserts and deletes; improved context updates 2023-05-23 15:34:05 +07:00
sgschantz
10bf9af6df fix isClientAppLegacy which was always returning true and add unit tests for it 2023-04-11 09:05:52 +07:00
Marc Durdin
067028cec2 chore: revise tag variable name to VERSION_GIT_TAG
Introduce new $VERSION_GIT_TAG environment variable, and update all
references to release@version in all projects to use the new variable.
2023-01-21 17:02:50 +07:00
Marc Durdin
34ece2182d fix(common): update sentry release identifiers to support semver
Fixes #7895.

This should mean that Sentry reports start to track semantic versions. I
have reviewed each project and I _think_ I've captured all the locations
where we need to construct release identifiers. Note that one of them
was fixed from a plain version number.

Docs on release format: https://docs.sentry.io/platforms/node/guides/serverless-cloud/configuration/releases/#bind-the-version
2023-01-17 17:04:24 +07:00
sgschantz
23ac555e95 changed property and arg names for consistency, more comment cleanup 2022-10-03 09:35:32 +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
Keyman Server
7ac84b4ffa chore(mac): address review comments 2022-04-05 07:30:07 +10:00
Keyman Server
39ddbdcde0 fix(mac) check package fileVersion during install 2022-03-23 15:40:05 +11:00
sgschantz
0bff16a643 merge in changes from master 2021-12-09 12:25:08 +07:00