summaryrefslogtreecommitdiff
path: root/protocols/Yahoo
diff options
context:
space:
mode:
authorSzymon Tokarz <wsx22@o2.pl>2013-12-21 20:27:39 +0000
committerSzymon Tokarz <wsx22@o2.pl>2013-12-21 20:27:39 +0000
commitd60636be9df63cdf73b25d69052d4ff39352e9db (patch)
treedd17b35b769a44ac469ae0e042c0fb4c6cc7c71e /protocols/Yahoo
parent2c90c2c9cda95116dcdd914f56627c8129ba458f (diff)
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
Diffstat (limited to 'protocols/Yahoo')
-rw-r--r--protocols/Yahoo/res/Yahoo.rc2
-rw-r--r--protocols/Yahoo/src/search.cpp10
2 files changed, 11 insertions, 1 deletions
diff --git a/protocols/Yahoo/res/Yahoo.rc b/protocols/Yahoo/res/Yahoo.rc
index db16f26edb..f903d01eee 100644
--- a/protocols/Yahoo/res/Yahoo.rc
+++ b/protocols/Yahoo/res/Yahoo.rc
@@ -100,7 +100,7 @@ BEGIN
LTEXT "ID:",IDC_STATIC,0,1,97,8
EDITTEXT IDC_SEARCH_ID,0,10,105,15,ES_AUTOHSCROLL
LTEXT "Protocol:",IDC_STATIC,0,31,97,38
- COMBOBOX IDC_SEARCH_PROTOCOL,0,40,105,75,CBS_DROPDOWNLIST
+ COMBOBOX IDC_SEARCH_PROTOCOL,0,40,105,75,CBS_DROPDOWNLIST | WS_TABSTOP
END
IDD_USER_INFO DIALOGEX 0, 0, 221, 132
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;
}