Skip to content

Android GoBack with forcefully close the app even if the keyboard is up #4257

Closed
@alexballas

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

Hello,
Since v2.4.0 GoBack action will forcefully close the app even if they keyboard is up.

How to reproduce

  1. Create an app with a textbox
  2. Select the textbox. The keyboard appears.
  3. Issue a back action

Expected:
The keyboard should collapse.

What happens:
The app exits.

Screenshots

No response

Example code

package main

import (
	"log"

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

func main() {
	myApp := app.New()
	myWindow := myApp.NewWindow("Entry Widget")

	input := widget.NewEntry()
	input.SetPlaceHolder("Enter text...")

	content := container.NewVBox(input, widget.NewButton("Save", func() {
		log.Println("Content was:", input.Text)
	}))

	myWindow.SetContent(content)
	myWindow.ShowAndRun()
}

Fyne version

v2.4.0

Go compiler version

1.21.1

Operating system and version

Ubuntu 18.04 (compiling) / Android 10

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