mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
[Mac] Cleanup to remove old comment and fix indent (aesthetic only)
This commit is contained in:
parent
c84141420a
commit
bd2fe2ee69
1 changed files with 11 additions and 12 deletions
|
|
@ -535,7 +535,6 @@ NSRange _previousSelRange;
|
|||
NSLog(@"Deleted %li null characters from context buffer", nc);
|
||||
// This can presumably only happen if a previous event resulted in a chain of
|
||||
// actions that had a Q_BACK not followed by a Q_STR.
|
||||
// REVIEW: Need to test this scenario in Atom and Googe Docs in Safari
|
||||
self.willDeleteNullChar = YES;
|
||||
[self postDeleteBacks:nc for:event];
|
||||
_keyCodeOfOriginalEvent = event.keyCode;
|
||||
|
|
@ -573,18 +572,18 @@ NSRange _previousSelRange;
|
|||
break;
|
||||
|
||||
default:
|
||||
{
|
||||
// NOTE: Although ch is usually the same as keyCode, when the option key is depressed (and
|
||||
// perhaps in some other cases) it may not be (keyCode can be 0). Likewise, the option key
|
||||
// can generate more than one character in event.characters.
|
||||
unichar ch = [event.characters characterAtIndex:0];
|
||||
if (keyCode < 0x33 || (ch >= 0x2A && ch <= 0x39)) { // Main keys, Numpad char range, normal punctuation
|
||||
charactersToAppend = event.characters;
|
||||
{
|
||||
// NOTE: Although ch is usually the same as keyCode, when the option key is depressed (and
|
||||
// perhaps in some other cases) it may not be (keyCode can be 0). Likewise, the option key
|
||||
// can generate more than one character in event.characters.
|
||||
unichar ch = [event.characters characterAtIndex:0];
|
||||
if (keyCode < 0x33 || (ch >= 0x2A && ch <= 0x39)) { // Main keys, Numpad char range, normal punctuation
|
||||
charactersToAppend = event.characters;
|
||||
}
|
||||
else {
|
||||
// Other keys
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Other keys
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (charactersToAppend != nil) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue