Browse Source

Fix tabbing between GUI fields.

The tab key didn't switch between fields in the GUI because we didn't
insert a call to IsDialogMessage() in the message loop.
Iain Patterson 8 years ago
parent
commit
3930cee5d4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      gui.cpp

+ 1 - 0
gui.cpp

@@ -28,6 +28,7 @@ int nssm_gui(int resource, char *name) {
   /* Go! */
   MSG message;
   while (GetMessage(&message, 0, 0, 0)) {
+    if (IsDialogMessage(dlg, &message)) continue;
     TranslateMessage(&message);
     DispatchMessage(&message);
   }