Closed
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 select the items from a list, this causes the keyboard to popup. Is there a scenario where we would require this? I tested it by compiling the list example here https://developer.fyne.io/collection/list
As a side effect, after you select an item, doing the back action multiple times in an attempt to exit the app, stops working.
How to reproduce
- select an item from the list in android
- observe the keyboard popping up
- Now try to exit by pressing the back action on your mobile
- First back action will close the keyboard
- Subsequent back actions do nothing
Screenshots
No response
Example code
package main
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)
var data = []string{"a", "string", "list"}
func main() {
myApp := app.New()
myWindow := myApp.NewWindow("List Widget")
list := widget.NewList(
func() int {
return len(data)
},
func() fyne.CanvasObject {
return widget.NewLabel("template")
},
func(i widget.ListItemID, o fyne.CanvasObject) {
o.(*widget.Label).SetText(data[i])
})
myWindow.SetContent(list)
myWindow.ShowAndRun()
}
Fyne version
v2.5.0
Go compiler version
1.21.0
Operating system and version
Android 10
Additional Information
No response
Activity