Fix initial focus.
authorIain Patterson <me@iain.cx>
Fri, 22 Nov 2013 13:40:17 +0000 (13:40 +0000)
committerIain Patterson <me@iain.cx>
Fri, 22 Nov 2013 13:59:14 +0000 (13:59 +0000)
Ensure that the service name field has the initial input focus.  It
already did for the install dialogue but didn't in the remove dialogue.

gui.cpp

diff --git a/gui.cpp b/gui.cpp
index e28c044..2642ad1 100644 (file)
--- a/gui.cpp
+++ b/gui.cpp
@@ -435,6 +435,8 @@ INT_PTR CALLBACK install_dlg(HWND window, UINT message, WPARAM w, LPARAM l) {
   switch (message) {\r
     /* Creating the dialogue */\r
     case WM_INITDIALOG:\r
+      SetFocus(GetDlgItem(window, IDC_NAME));\r
+\r
       HWND tabs;\r
       HWND combo;\r
       tabs = GetDlgItem(window, IDC_TAB1);\r