Skip to content

Backspace and Delete key Do not Fire OnChanged Event #4117

Closed
@heejit

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

Entry widget do not fire Onchanged event on Delete and Backspace Key.

How to reproduce

Attached code

Screenshots

No response

Example code

package main

import (
	"fmt"

	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

func main() {
	fyneApp := app.NewWithID("com.xyz")
	mainWin := fyneApp.NewWindow("Bug Report")
	mainWin.SetMaster()
	mainWin.Show()

	w := widget.NewEntry()
	w.SetPlaceHolder("On Backspace and Delete Key OnChanged event do not fire")
	w.OnChanged = func(v string) {
		fmt.Println("On Changed called")
	}

	mainWin.SetContent(w)

	fyneApp.Run()
}

Fyne version

fyne.io/fyne/v2 v2.3.6-0.20230801132204-0b324c4306a0

Go compiler version

1.20

Operating system and version

Linux

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    blockerItems that would block a forthcoming releasebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions