FileDialog: Accept dialog on fileNameTextField Enter press


SaveFile dialogs have an additional TextField present, which
lets the user type the name of the file he/she wishes to save.

Pressing enter used to not automatically accept the dialog,
which apparently is unexpected behavior. This can easily be changed,
this is what this commit does.

Fixes: QTBUG-150375
Pick-to: 6.12
Change-Id: Icbf653686a8aeb9ea934a00ac56919e13c1c566f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
commita9b4d01e899d101d1a29a036cde580a9eb653bb0
parent2e11b3cae9f077b7d7ccc6fd2b33c4574870f687
authorOliver Eftevaag <oliver.eftevaag@qt.io>
committerOliver Eftevaag <oliver.eftevaag@qt.io>
commit timeWed, 14 Oct 2026 11:09:27 +0000