Skip to content

[AutoFormat] Handle input exclusively#3162

Merged
juliaroldi merged 8 commits into
masterfrom
u/juliaroldi/auto-forma-exclu
Oct 6, 2025
Merged

[AutoFormat] Handle input exclusively#3162
juliaroldi merged 8 commits into
masterfrom
u/juliaroldi/auto-forma-exclu

Conversation

@juliaroldi

Copy link
Copy Markdown
Contributor

After inputting a link URL or characters that triggers a list, handle the input event exclusively to avoid auto capitalization, when AutoCorrect Plugin is enabled.

return false;
}

return isLastWordUrl(previousText) || isLetterFollowedByMarker(previousText);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we should have a same check when checking exclusiveness and really handle the event, rather than having separate functions.

But if that is too hard to refactor, or have bad perf impact, then it is ok to keep them separate.

Can you double check?

@juliaroldi juliaroldi Oct 1, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the code to use the getListTypeStyle and promoteLink, if these functions do have return, we should handle the event exclusively.

@juliaroldi
juliaroldi merged commit 4e33056 into master Oct 6, 2025
7 checks passed
@juliaroldi
juliaroldi deleted the u/juliaroldi/auto-forma-exclu branch October 6, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants