diff --git a/dialog/file.go b/dialog/file.go index cce25820e6..1acbfab2dc 100644 --- a/dialog/file.go +++ b/dialog/file.go @@ -101,6 +101,9 @@ func (f *fileDialog) makeUI() fyne.CanvasObject { } } saveName.SetPlaceHolder(lang.L("Enter filename")) + saveName.OnSubmitted = func(s string) { + f.open.OnTapped() + } f.fileName = saveName } else { f.fileName = widget.NewLabel("") @@ -644,6 +647,9 @@ func showFile(file *FileDialog) *fileDialog { d.setLocation(file.effectiveStartingDir()) d.win.Show() + if file.save { + d.win.Canvas.Focus(d.fileName.(*widget.Entry)) + } return d }