From: Vladislav Timonin timoninvlad@yandex.ru
So that the focus isn't stuck on the button after clicking on it, preventing the user from Backspacing or typing in the file name edit box. --- dlls/comdlg32/navbar.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/comdlg32/navbar.c b/dlls/comdlg32/navbar.c index ff7d4ad2aa3..bf0064dc1fa 100644 --- a/dlls/comdlg32/navbar.c +++ b/dlls/comdlg32/navbar.c @@ -190,8 +190,13 @@ static LRESULT CALLBACK NAVBAR_ButtonProc(HWND hwnd, UINT msg, WPARAM wparam, LP switch (msg) { case WM_SETFOCUS: + { + /* redirect focus back to previous window */ + SetFocus((HWND)wparam); + /* don't paint the focus rect */ return 0; /* processed */ + } case WM_GETDLGCODE: /* prevent arrow navigation, leaves sticky highlight on buttons */ return DLGC_WANTARROWS;