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

fix: avoid sharing MfmKeyboard among multiple TextEditControllers #13

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

poppingmoon
Copy link
Owner

Switching TextEditControllers of a MfmKeyboard leads to RangeError.
When building buttons, TagType from previous controller is keep preserved, so it tries to substring text to get query and accesses invalid range.

Fix this by simply using two MfmKeyboards, one for cw and the other for main text.

@poppingmoon poppingmoon merged commit d0cbab6 into main Apr 1, 2024
9 of 10 checks passed
@poppingmoon poppingmoon deleted the cw-keyboard branch April 1, 2024 10:24
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.

1 participant