Skip to content

Commit

Permalink
Merge pull request fyne-io#4694 from ivoras/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz authored Mar 5, 2024
2 parents e3d9ee6 + 58ad37d commit c3c2985
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dialog/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit c3c2985

Please sign in to comment.