aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2006-11-17 23:48:39 +0000
committerTom Yu <tlyu@mit.edu>2006-11-17 23:48:39 +0000
commitb4d33788a70bed4cc323302d783dfd0d50d72ee9 (patch)
tree57298f2082892c0a18b1a35a93a85e2da88994c9
parentf25faaf25358f50674c116fbbdc4b113c8dc7c72 (diff)
downloadkrb5-b4d33788a70bed4cc323302d783dfd0d50d72ee9.zip
krb5-b4d33788a70bed4cc323302d783dfd0d50d72ee9.tar.gz
krb5-b4d33788a70bed4cc323302d783dfd0d50d72ee9.tar.bz2
pull up r18841 from trunk
r18841@cathode-dark-space: jaltman | 2006-11-17 18:24:59 -0500 ticket: new subject: one more commit for kfw 3.1 beta 4 tags: pullup - when the krb5 prompter callback function is called, set the focus to the first input field provided by the caller. ticket: 4803 version_fixed: 1.4.5 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@18845 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/windows/identity/ui/newcredwnd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/windows/identity/ui/newcredwnd.c b/src/windows/identity/ui/newcredwnd.c
index 7bad1e2..b876b02 100644
--- a/src/windows/identity/ui/newcredwnd.c
+++ b/src/windows/identity/ui/newcredwnd.c
@@ -1740,6 +1740,13 @@ static LRESULT nc_handle_wm_nc_notify(HWND hwnd,
y += dy;
}
+ if (d->nc->n_prompts > 0 &&
+ d->nc->prompts[0]->hwnd_edit) {
+
+ SetFocus(d->nc->prompts[0]->hwnd_edit);
+
+ }
+
SelectObject(hdc, hfold);
ReleaseDC(d->dlg_main, hdc);