aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2006-11-17 23:24:59 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2006-11-17 23:24:59 +0000
commita5bbe3cb401379f107a1cfe0989e87125fa31ed4 (patch)
treef03e9fc37e00c832ca18b87bc67214bc1a33633a
parent19af79db346da1b5394e05d8d53c6db4cd822177 (diff)
downloadkrb5-a5bbe3cb401379f107a1cfe0989e87125fa31ed4.zip
krb5-a5bbe3cb401379f107a1cfe0989e87125fa31ed4.tar.gz
krb5-a5bbe3cb401379f107a1cfe0989e87125fa31ed4.tar.bz2
one more commit for kfw 3.1 beta 4
- when the krb5 prompter callback function is called, set the focus to the first input field provided by the caller. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18841 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);