Module: wine Branch: master Commit: d0fac61c6dae28ef1608c1d39c979002e1c5994b URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0fac61c6dae28ef1608c1d39c...
Author: Vincent Povirk vincent@codeweavers.com Date: Thu Nov 5 14:23:26 2015 -0600
comdlg32: Initially focus filename text box.
Signed-off-by: Vincent Povirk vincent@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/comdlg32/itemdlg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c index d66655a..f9a7707 100644 --- a/dlls/comdlg32/itemdlg.c +++ b/dlls/comdlg32/itemdlg.c @@ -2065,7 +2065,10 @@ static LRESULT on_wm_initdialog(HWND hwnd, LPARAM lParam) if(This->filterspec_count) events_OnTypeChange(This);
- return TRUE; + if ((hitem = GetDlgItem(This->dlg_hwnd, IDC_FILENAME))) + SetFocus(hitem); + + return FALSE; }
static LRESULT on_wm_size(FileDialogImpl *This)