mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 18:05:32 +00:00
Added explanatory comment
This commit is contained in:
parent
cabff25ae1
commit
186c1b2f65
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ NSRange _previousSelRange;
|
|||
|
||||
// This is the public initializer.
|
||||
- (instancetype)initWithClient:(NSString *)clientAppId {
|
||||
// Note: Pages and Keynote (and possibly lots of other undiscovered apps that are otherwise compliant
|
||||
// with Apple's IM faramework) need to be treated as "legacy" because if the user selects a different
|
||||
// font (or other formatting) and then types a sequence that causes characters to be added to the document
|
||||
// and then subsequently replaced, the replacement causes the formatting decision to be forgotten.
|
||||
BOOL legacy = ([clientAppId isEqual: @"com.apple.iWork.Pages"] ||
|
||||
[clientAppId isEqual: @"com.apple.iWork.Keynote"] ||
|
||||
[clientAppId isEqual: @"com.github.atom"] ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue