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

Add character limit to TextEdit #2816

Merged
merged 5 commits into from
Mar 30, 2023
Merged

Add character limit to TextEdit #2816

merged 5 commits into from
Mar 30, 2023

Conversation

wzid
Copy link
Contributor

@wzid wzid commented Mar 16, 2023

Added char_limit to TextEdit to provide a way to limit the amount of characters.

Updated to fix panics for UTF-8 characters and subtract overflow
@wzid wzid requested a review from xTibor March 19, 2023 21:30
crates/egui/src/widgets/text_edit/builder.rs Outdated Show resolved Hide resolved
crates/egui/src/widgets/text_edit/builder.rs Outdated Show resolved Hide resolved
@wzid wzid requested review from emilk and removed request for xTibor March 29, 2023 21:34
@emilk emilk merged commit 5fc5f08 into emilk:master Mar 30, 2023
@emilk emilk added feature New feature or request egui labels Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants