Skip to content

Commit 02e1ca8

Browse files
fix: clarification comment
Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
1 parent 6215108 commit 02e1ca8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ios/EnrichedTextInputView.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,8 @@ - (void)anyTextMayHaveBeenModified {
16761676
if (textView.textStorage.string.length == 0 &&
16771677
_recentInputString.length > 0 &&
16781678
!preserveTypingAttributesOnNextEmptyCheck) {
1679-
// reset typing attribtues
1679+
// reset typing attributes if we emptied the string
1680+
// adding alignment via shortcuts wants to preserve typing attributes, so we don't reset then
16801681
textView.typingAttributes = defaultTypingAttributes;
16811682
}
16821683
preserveTypingAttributesOnNextEmptyCheck = NO;

0 commit comments

Comments
 (0)