Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a different change source for keyboard formatting event #2799

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

JiuqingSong
Copy link
Collaborator

For formatContentModel triggered from keyboard event (ENTER, TAB, DELETE, ...), we should use a different change source than the default ChangeSource.Format. We already have such a change source Keyboard so we should use it.
Then from plugins we can know if the ContentChanged event is from keyboard editing.

@JiuqingSong JiuqingSong merged commit 7ef8730 into master Sep 16, 2024
7 checks passed
@JiuqingSong JiuqingSong deleted the u/jisong/keyboardevent branch September 16, 2024 20:35
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.

2 participants