Open xxxserxxx opened 2 years ago
Can you please check the version of the fyne
command line tool? If you have been upgrading the library in your code it is important to re-run go install fyne-io/fyne/v2/cmd/fyne@latest
(or specify a version) so that the tool matches the code version.
You can confirm with fyne version
and also fyne env
may have some clues.
Yes, of course. Fyne versionS:
$ grep fyne.io go.mod go.sum && echo "######" && fyne version && echo "######" && fyne env
go.mod:require fyne.io/fyne/v2 v2.1.2
go.sum:fyne.io/fyne/v2 v2.1.2 h1:avp9CvLAUdvE7fDMtH1tVKyjxEWHWcpow6aI6L7Kvvw=
go.sum:fyne.io/fyne/v2 v2.1.2/go.mod h1:p+E/Dh+wPW8JwR2DVcsZ9iXgR9ZKde80+Y+40Is54AQ=
######
fyne cli version: v2.1.2
######
## Go module info
cli_version="v2.1.2"
go_mod="true"
go_path="false"
imported="true"
path="/home/ser/tmp/fyne.2"
version="v2.1.2"
## Go version info
version="go1.17.7 linux/amd64"
## Go environment info
CGO_ENABLED="1"
GO111MODULE=""
GOARCH="amd64"
GOOS="linux"
## OS info
architecture="x86_64"
home_url="https://archlinux.org/"
kernel="Linux 5.16.8-arch1-1 #1 SMP PREEMPT Tue, 08 Feb 2022 21:21:08 +0000"
name="Arch Linux"
I made sure the CLI was up to date, ran the above command, re-packaged & updated the APK, and confirmed that the issue persists. In the test repository, I removed the closure function for brevity, since it didn't affect the behavior.
Now confirmed also on Fyne v2.1.4 on:
The Pixel C + BT keyboard behaves differently: every key press is duplicated, not just backspace. On the other environments, it's only backspace.
## Go module info
cli_version="v2.1.4"
go_mod="true"
go_path="false"
imported="true"
path="/home/ser/workspace/forage.d/forage"
version="v2.1.4"
## Go version info
version="go1.18 linux/amd64"
## Go environment info
CGO_ENABLED="1"
GO111MODULE=""
GOARCH="amd64"
GOOS="linux"
## OS info
architecture="x86_64"
home_url="https://archlinux.org/"
kernel="Linux 5.16.16-arch1-1 #1 SMP PREEMPT Mon, 21 Mar 2022 22:59:40 +0000"
name="Arch Linux"
Curiously, this issue does not happen with the FlorisBoard Beta keyboard on my Samsung. Maybe it has something to do with the stock keyboards' text prediction? In any case, it still happens with the stock Samsung kb, and Fyne apps are the only place I've observed this.
Possibly related issues: #1941, #165
Describe the bug:
On Android, pressing backspace in an editable text entry widget deletes two characters.
To Reproduce:
fyne package -os android
)Two characters will be deleted. This happens from wherever in the string the cursor is, e.g. the end or the middle.
Example code:
Sample code is in a github repository. It is, essentially, a text entry widget with a list widget below. The text entry widget has an
OnSubmitted
lambda that prepends the text to the list. The behavior happens without theOnSubmitted
closure as well.Device (please complete the following information):