Skip to content

Commit 6215108

Browse files
committed
refactor: comment tweak
1 parent f047575 commit 6215108

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ios/utils/ShortcutsUtils.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ + (BOOL)tryHandlingParagraphShortcutsInRange:(NSRange)range
394394

395395
// we don't allow for paragraph style shortcuts in non-plain text
396396
// paragraphs, where the only exception is a text alignment, which we can
397-
// always apply
397+
// always apply. paragraphHasActiveStyle doesn't consider text alignment,
398+
// so we can apply paragraph style shortcuts also when text alignment
399+
// is already applied
398400
if (type != Alignment && paragraphHasActiveStyle) {
399401
continue;
400402
}

0 commit comments

Comments
 (0)