-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Problem with text entry in Entry widget (cursor stays put - Backspace or Delete causes panic) #1096
Comments
Thanks, I can replicate this locally with some tweaked fyne_demo code, stack looks like:
Is this the same as you saw (except the index number perhaps)? |
Yes the error looks the same: `panic: runtime error: slice bounds out of range [:11] with capacity 8 goroutine 19 [running]: |
On develop for testing :) |
Describe the bug:
I raised a question about this on the slack channel on 2020-06-10. After I tab to an Entry field that has been refreshed with i2.Text = "" and i2.Refresh() and start typing the cursor stays at the beginning of the input field. If, after typing a few characters (with the cursor still at the beginning of the input field), I press Backspace or Delete the program panics.
The problem behaviour can be seen in the attached screen grab (first pass is OK, second isn't).
At Andrew's suggestion I tried i2.SetText("") instead of i2.Text = "" and that works OK, or has so far.
2020-06-10 20-25-33.zip
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: