[X] I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
[X] This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
With different virtual keyboards (Samsung Keyboard, Unexpected Keyboard, however Microsoft SwiftKey is fine) and also with an attached hardware keyboard, I get doubled key presses. The observation with a hardware keyboard is such that the app then acts on both pressing and releasing the keys.
I've never seen it with another app. I couldn't manage to reproduce it in an emulator.
How to reproduce
Switch around virtual keyboards, type into an Entry, and also use the Backspace key.
Screenshots
No response
Example code
package main
import (
"net"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/dialog"
"fyne.io/fyne/v2/driver/mobile"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("Bugs")
w.Resize(fyne.NewSize(640, 480))
w.SetContent(widget.NewMultiLineEntry())
connectAddress := widget.NewEntry()
connectAddress.SetPlaceHolder("host:port")
connectAddress.Validator = func(text string) error {
_, _, err := net.SplitHostPort(text)
return err
}
connectAddress.SetText(string([]byte{3, 2, 1, 65, 66, 67, ':', '1'}))
connectAddress.TypedKey(&fyne.KeyEvent{Name: fyne.KeyPageDown})
var wConnect *dialog.FormDialog
wConnect = dialog.NewForm("Connect to relay", "Connect", "Exit",
[]*widget.FormItem{
{Text: "Address:", Widget: connectAddress},
}, func(ok bool) {
if ok {
} else if _, ok := a.Driver().(mobile.Driver); ok {
wConnect.Show()
} else {
a.Quit()
}
}, w)
wConnect.Show()
w.ShowAndRun()
}
Checklist
Describe the bug
With different virtual keyboards (Samsung Keyboard, Unexpected Keyboard, however Microsoft SwiftKey is fine) and also with an attached hardware keyboard, I get doubled key presses. The observation with a hardware keyboard is such that the app then acts on both pressing and releasing the keys.
I've never seen it with another app. I couldn't manage to reproduce it in an emulator.
How to reproduce
Switch around virtual keyboards, type into an Entry, and also use the Backspace key.
Screenshots
No response
Example code
Fyne version
2.5.2
Go compiler version
1.23.2
Operating system and version
Android 13 One UI 5.1
Additional Information
No response