static SnapData sd;\r
char buf[MSG_SIZ], mess[MSG_SIZ];\r
int partner = -1, i;\r
+ static BOOL filterHasFocus[MAX_CHAT];\r
\r
for(i=0; i<MAX_CHAT; i++) if(hDlg == chatHandle[i]) { partner = i; break; }\r
\r
SetWindowText(hDlg, buf);\r
}\r
chatPartner[partner][0] = 0;\r
+ filterHasFocus[partner] = FALSE;\r
\r
return FALSE;\r
\r
case WM_COMMAND:\r
+ /* \r
+ [AS]\r
+ If <Enter> is pressed while editing the filter, it's better to apply\r
+ the filter rather than selecting the current game.\r
+ */\r
+ if( LOWORD(wParam) == IDC_ChatPartner ) {\r
+ switch( HIWORD(wParam) ) {\r
+ case EN_SETFOCUS:\r
+ filterHasFocus[partner] = TRUE;\r
+ break;\r
+ case EN_KILLFOCUS:\r
+ filterHasFocus[partner] = FALSE;\r
+ break;\r
+ }\r
+ }\r
+\r
+ if( filterHasFocus[partner] && (LOWORD(wParam) == IDC_Send) ) {\r
+ SetFocus(GetDlgItem(hDlg, OPT_ChatInput));\r
+ wParam = IDC_Change;\r
+ }\r
+ /* [AS] End command replacement */\r
+\r
switch (LOWORD(wParam)) {\r
\r
case IDCANCEL:\r