8000 Backspace delete both commited and uncommited character when using fcitx5 · Issue #5757 · fyne-io/fyne · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Backspace delete both commited and uncommited character when using fcitx5 #5757
Open
@lixiangwuxian

Description

@lixiangwuxian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    unverifiedA bug that has been reported but not verified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0