From: Iain Patterson Date: Tue, 12 Nov 2013 13:32:37 +0000 (+0000) Subject: Fix tabbing between GUI fields. X-Git-Tag: v2.17~1 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=3930cee5d4fdb4d451f4125a14e57caa60ee7b8f;p=nssm.git 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. --- diff --git a/gui.cpp b/gui.cpp index 84fd4c2..7955b1a 100644 --- a/gui.cpp +++ b/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); }