Let it in stead switch focus back to the console window.
\r
switch (LOWORD(wParam)) {\r
\r
- case IDCANCEL:\r
- chatHandle[partner] = 0;\r
- chatPartner[partner][0] = 0;\r
- ChatPopDown();\r
- EndDialog(hDlg, TRUE);\r
- break;\r
+ case IDCANCEL: /* let Esc key switch focus back to console */\r
+ SetFocus(GetDlgItem(hwndConsole, OPT_ConsoleInput));\r
+ break;\r
\r
case IDC_Clear:\r
SendMessage( GetDlgItem(hDlg, IDC_ChatMemo), WM_SETTEXT, 0, (LPARAM) "" );\r