From d60636be9df63cdf73b25d69052d4ff39352e9db Mon Sep 17 00:00:00 2001 From: Szymon Tokarz Date: Sat, 21 Dec 2013 20:27:39 +0000 Subject: Yahoo - add for issue #485 - improves navigation by keyboard in Yahoo custom search dialog. git-svn-id: http://svn.miranda-ng.org/main/trunk@7323 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/search.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'protocols/Yahoo/src') diff --git a/protocols/Yahoo/src/search.cpp b/protocols/Yahoo/src/search.cpp index d809bf496f..2b714bd3dd 100644 --- a/protocols/Yahoo/src/search.cpp +++ b/protocols/Yahoo/src/search.cpp @@ -138,6 +138,16 @@ static INT_PTR CALLBACK YahooSearchAdvancedDlgProc(HWND hwndDlg, UINT msg, WPARA // select the first one SendDlgItemMessage(hwndDlg, IDC_SEARCH_PROTOCOL, CB_SETCURSEL, 0, 0); return TRUE; + case WM_COMMAND: + if(LOWORD(wParam)==IDC_SEARCH_ID && HIWORD(wParam)==EN_CHANGE){ + PostMessage(GetParent(hwndDlg),WM_COMMAND, MAKEWPARAM(0,EN_SETFOCUS), (LPARAM)hwndDlg); + return TRUE; + } + if(LOWORD(wParam)==IDC_SEARCH_PROTOCOL && HIWORD(wParam)==CBN_SELCHANGE){ + PostMessage(GetParent(hwndDlg),WM_COMMAND, MAKEWPARAM(0,EN_SETFOCUS), (LPARAM)hwndDlg); + return TRUE; + } + break; } return FALSE; } -- cgit v1.2.3