Open
Description
Checklist
- I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
When I'm using fcitx5 to input Chinese in any kind of text widget, pressing backspace once will delete both a character in text widget and IME uncommitted character area.
How to reproduce
- build the code
- run it
- click any text widget and start using IME to input
- type some characters and commit them to the widget
- type some more characters but keep them uncommitted
- press backspace
- both the last characters in the widget and IME input box are deleted
Screenshots
_20250529_163645.webm
Example code
myApp := app.NewWithID("com.text-widget.demo")
window := myApp.NewWindow("text_demo")
window.Resize(fyne.NewSize(400, 300))
window.CenterOnScreen()
textEntry := widget.NewMultiLineEntry()
textEntry.Wrapping = fyne.TextWrapWord
content := container.NewVBox(
widget.NewLabel("文本框验证演示"),
widget.NewSeparator(),
textEntry,
)
window.SetContent(container.NewPadded(content))
window.ShowAndRun()
Fyne version
2.6.1
Go compiler version
1.24.3
Operating system and version
openSUSE tumbleweed
Additional Information
No response