We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In an Entry the KeyUp and KeyDown events do not fire for some keys on the numeric pad.
Steps to reproduce the behaviour:
package main import ( "fmt" "fyne.io/fyne" "fyne.io/fyne/app" "fyne.io/fyne/widget" ) type enterEntry struct { widget.Entry } func (e *enterEntry) onEnter() { fmt.Println(e.Entry.Text) e.Entry.SetText("") } func newEnterEntry() *enterEntry { entry := &enterEntry{} entry.ExtendBaseWidget(entry) return entry } func (e *enterEntry) KeyDown(key *fyne.KeyEvent) { switch key.Name { case fyne.KeyReturn: e.onEnter() default: e.Entry.KeyDown(key) fmt.Printf("Key %v pressed\n", key.Name) } } func (e *enterEntry) KeyUp(key *fyne.KeyEvent) { fmt.Printf("Key %v released\n", key.Name) } func main() { a := app.New() w := a.NewWindow("Messenger") entry := newEnterEntry() w.SetContent(entry) w.ShowAndRun() }
The text was updated successfully, but these errors were encountered:
Fix missing key events for some keypad keys
dfe8276
Fixes #1325
Fix is on develop for testing
Sorry, something went wrong.
andydotxyz
No branches or pull requests
Describe the bug:
In an Entry the KeyUp and KeyDown events do not fire for some keys on the numeric pad.
To Reproduce:
Steps to reproduce the behaviour:
Example code:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: