Commit graph

39 commits

Author SHA1 Message Date
sgschantz
96c78752b5 load Keyman Package information from kmp.json file and store in new PackageInfo object rather than in existing Dictionary hierarchy 2021-11-25 17:09:01 +07:00
Marc Durdin
256ba2ef1e [mac] Support Adobe products in legacy mode (and VS Code) 2019-08-08 19:36:27 +10:00
Marc Durdin
c3376eba18 [Mac] Add notarization for 10.14.5 and later versions 2019-07-24 20:57:46 +10:00
Marc Durdin
599482b818
Merge pull request #1840 from kamholz/selection-fix
[Mac] fix out-of-date context buffer after keyboard commands
2019-07-09 06:28:41 +10:00
David Kamholz
03e6139cf0 refresh contextBuffer on flagsChanged 2019-06-21 20:20:49 -07:00
David Kamholz
93e8361800 persist save() values across sessions 2019-06-21 11:18:58 -07:00
Randy Boring
a9c5621123 make nice constant names, use them, improve comment to match logic 2019-02-16 12:59:44 -06:00
Randy Boring
26a1af6798 adds KMOSVersion.h and .m to project, uses it to test for OS versions 10.13.1-3
avoids Apple OS bug in showPreferences that kills our app in those OS versions.
fixes #1447
2019-02-14 01:53:52 -06:00
Randy Boring
b977a0b295 where available, call showPreferences, otherwise, call our workaround 2018-12-18 13:20:54 -06:00
Tom Bogle
724b50224c [Mac] Removed unneeded code for handling mouse events in IM
The low-level event tap already handles detection of mouse events that could make the context out of date.
2018-07-05 14:22:52 -04:00
Tom Bogle
c840cedef9 [Mac] Prevent permanently hiding OSK when a menu is dropped down
This *might* possibly fix #894, but not likely
2018-06-27 01:32:18 -04:00
Tom Bogle
200dc30193
Merge pull request #883 from keymanapp/mac-882-fix-crash-in-eventTapFunction
[Mac] Prevented crash in eventTapFunction processing "out of band" event
2018-05-25 12:03:53 -04:00
Tom Bogle
d2ed7fc527 Improvements to event tap code
1) Enable/disable event tap depending on whether Keyman is the active IM; 2) Made code dealing with keeping track of activating/deactivating servers thread-safe; 3) Improved clean-up when event tap cannot be re-enabled; 4) Improved and cleaned up some comments and code aesthetics.
2018-05-23 14:16:41 -04:00
Tom Bogle
953ba5d9c9 Added diagnostics and experimenting with things related to InDesign 2018-05-17 09:10:42 -04:00
Tom Bogle
4afd3c10bd Added logic to hide OSK when Keyman is no longer active IM. 2018-05-08 16:50:16 -04:00
Tom Bogle
8991d0076d Removed commented out code.
Also added a couple TODO comments not actually related to the work in this branch.
2018-02-06 22:21:04 -05:00
Tom Bogle
e42626d229 Permanently removed Chrome-specific behavior. 2018-01-12 14:34:20 -05:00
Tom Bogle
0d7a519220 Commented out Chrome-specific code (possibly temporary) 2018-01-12 11:52:44 -05:00
Tom Bogle
50cd075d03 Split browser-specific code into separate subclasses
Safari and Chrome get their own subclasses, but I need to compare performance.
2018-01-09 15:52:14 -05:00
Tom Bogle
6176310073 Broke out browser client support into subclass
There is a problem with Google Docs in Safari now - did I break something?
2018-01-05 15:51:08 -05:00
Tom Bogle
4c7b2952f2 Refactor step 1: move event handling code to new class 2018-01-05 09:52:35 -05:00
Tom Bogle
2a54e75c35 Added/enhanced comments related to showPreferences workaround. 2017-11-21 11:35:21 -05:00
Tom Bogle
ecd7008246 Merge remote-tracking branch 'origin/master' into mac-compatibility-with-legacy-apps 2017-11-21 11:21:03 -05:00
Tom Bogle
8369e9d6e1 Added comment to explain the use of the regex to find a base character to use as the start of the string inserted using the insertText method. 2017-11-21 11:14:37 -05:00
Gabriel Wong
0e688c3324 Clean up log statements 2017-11-21 10:55:49 +07:00
Tom Bogle
2c024805a5 WIP: This is what I have tried so far. The config window does NOT display when accessed via the menu. It still works (the old/right way) in Sierra when accessed via the About window. If you first try to access it via the menu and then access it via the Configuration button on the About window, it displays twice! 2017-11-19 23:55:22 -05:00
Tom Bogle
e53f0317a1 Added some comments and diagnostic code. 2017-11-09 10:56:23 -05:00
Tom Bogle
3788acaba3 Enabled Keyman to deal with selection changes resulting from keyboard navigation. Tried a solution for Word in Safari, but commented it out. Added Firefox to the list of browsers that need to try to detect whether editing is in Google Docs. 2017-11-03 16:41:34 -04:00
Tom Bogle
2b22509730 Added special logic to handle Google Docs in Chrome, where multiple characters cannot be inserted simultaneously. 2017-11-02 15:34:28 -04:00
Tom Bogle
5f4dce6a0d Solved Mail compatibility problems using regex to ensure that "preChar" starts with a base character. Added MS Word as a "legacy" product to make it work correctly. 2017-11-01 22:11:24 -04:00
Tom Bogle
ddf1320960 Merge branch 'master' into mac-compatibility-with-legacy-apps 2017-10-31 22:22:49 -04:00
Tom Bogle
21411263ad WIP: Work to deal with handling a Q_BACK that tries to insert a combining mark instead of a base character (along with its combining marks). This causes compatibility problems in some apps (e.g., Mail) 2017-10-30 22:33:19 -04:00
Tom Bogle
629cbd8c58 Cherry picked a few small changes from "mac compatibility" branch to fix bug whereby command keys were sometimes causing characters to be output. 2017-10-23 22:44:57 -04:00
Tom Bogle
f6114811ff Tried adding Oxygen XML editor as a "legacy" app, but it's problems were more severe, so I commented it out. 2017-10-23 22:30:11 -04:00
Tom Bogle
892c4c7e42 Added code to prevent sending an extra delete-back in Google Chrome when it inaccurately reports a text selection. 2017-10-20 07:28:56 -04:00
Tom Bogle
30386abd6e Prevented processing of Command keys. Fixed timing related problems when repsonding to actions that require us to get the context again. In Safari Google Docs, fixed problem when typing replaces selected text (once we've managed to detect we're in Google Docs). Added Xcode to the list of apps that don't let KM know about arrow keys and/or mouse clicks that might affect the context. 2017-10-19 13:53:24 -04:00
Tom Bogle
f45fac7d03 WIP: Detect Google Docs, unreported context changes, refactoring
WIP: Most "legacy" app and Google Docs issues now dealt with pretty well. A few more issues to look at and some code cleanup to do.
2017-10-17 23:43:04 -04:00
Tom Bogle
668948011e Major overhaul of processing to improve compatibility with apps (and certain sites withing certain browsers) that don't properly handle the "normal" IM methods. 2017-10-09 01:20:38 -04:00
Tom Bogle
87aa5057ef [Mac] Initial check-in to open-source repo 2017-08-10 13:11:52 +07:00