mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Windows file selectors contain an edit box as well as the Browse
button; we must send EVENT_VALCHANGE when the edit box is manually changed as well as when the file selector successfully completes. [originally from svn r2975]
This commit is contained in:
parent
a185d54301
commit
17bafa0c08
@ -1899,6 +1899,8 @@ int winctrl_handle_command(struct dlgparam *dp, UINT msg,
|
||||
if (msg == WM_COMMAND && id == 2 &&
|
||||
(HIWORD(wParam) == BN_SETFOCUS || HIWORD(wParam) == BN_KILLFOCUS))
|
||||
winctrl_set_focus(ctrl, dp, HIWORD(wParam) == BN_SETFOCUS);
|
||||
if (msg == WM_COMMAND && id == 1 && HIWORD(wParam) == EN_CHANGE)
|
||||
ctrl->generic.handler(ctrl, dp, dp->data, EVENT_VALCHANGE);
|
||||
if (id == 2 &&
|
||||
(msg == WM_COMMAND &&
|
||||
(HIWORD(wParam) == BN_CLICKED ||
|
||||
|
Loading…
Reference in New Issue
Block a user