Commit Graph

5 Commits

Author SHA1 Message Date
Lukhnos Liu c1bea8c382 Fix IME activation issues on macOS 12
We now let the Installer to call the TextInputSources API. Since macOS
12, users are prompted to allow enabling of third-party IMEs in
Preferences.app the momemnt TISRegisterInputSource or
TISEnableInputSource is called. By moving the activation to the
Installer, a user will clearly see that it's the Installer that wants to
enable the IME.

In addition, we had to make necessary changes so that on macOS 12 and
later, the Installer always enable the default input source. This is due
to the observation that the kTISPropertyInputSourceIsEnabled becomes
unreliable on macOS 12--it may be true even if the user has removed the
input mode from their active input mode list in Preferences.app.
2021-11-23 19:04:42 -08:00
zonble 0f05e245a5 Coverts to Objective-C ARC. 2021-02-28 21:30:10 +08:00
Lukhnos Liu d1893b6a37 Correctly enable all input modes when upgrading. 2012-09-11 21:38:59 -07:00
Mengjuei 0d8e1ae20f Tab conversion into 4 spaces 2012-02-26 20:53:51 -08:00
Mengjuei Hsieh 5f976e4642 first commit 2011-09-01 23:56:26 -07:00