[Mac] Cleanup to remove old comment and fix indent (aesthetic only)

This commit is contained in:
Tom Bogle 2018-07-05 14:18:10 -04:00
parent c84141420a
commit bd2fe2ee69

View file

@ -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) {