Malcolm Rowe's UI tweak patch for About/Licence: recognise `Esc' to close
[sgt/putty] / puttygen.c
index ff3f9f7..3f2be92 100644 (file)
@@ -253,6 +253,7 @@ static int CALLBACK LicenceProc(HWND hwnd, UINT msg,
       case WM_COMMAND:
        switch (LOWORD(wParam)) {
          case IDOK:
+         case IDCANCEL:
            EndDialog(hwnd, 1);
            return 0;
        }
@@ -292,6 +293,7 @@ static int CALLBACK AboutProc(HWND hwnd, UINT msg,
       case WM_COMMAND:
        switch (LOWORD(wParam)) {
          case IDOK:
+         case IDCANCEL:
            EndDialog(hwnd, 1);
            return 0;
          case 101: