pull up r18841 from trunk
authorTom Yu <tlyu@mit.edu>
Fri, 17 Nov 2006 23:48:39 +0000 (23:48 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 17 Nov 2006 23:48:39 +0000 (23:48 +0000)
 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

src/windows/identity/ui/newcredwnd.c

index 7bad1e24c04f67fd710f7e36bd038b7948dc60ed..b876b029790d0fceb9b473ebf26725ff0b1d86d2 100644 (file)
@@ -1740,6 +1740,13 @@ static LRESULT nc_handle_wm_nc_notify(HWND hwnd,
                 y += dy;\r
             }\r
 \r
+            if (d->nc->n_prompts > 0 &&\r
+                d->nc->prompts[0]->hwnd_edit) {\r
+\r
+                SetFocus(d->nc->prompts[0]->hwnd_edit);\r
+\r
+            }\r
+\r
             SelectObject(hdc, hfold);\r
             ReleaseDC(d->dlg_main, hdc);\r
 \r