diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-05 18:44:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-05 18:44:03 +0000 |
commit | 26981d4a501723f95a29ca04098d8cb2be72494d (patch) | |
tree | b8bfa7556036c99e6edc50de7f493b2219e5f84e | |
parent | 5f3fa3a88d32a96b29b35e743b7b70fb80257e3b (diff) |
fixes #937 (Bug with CTRL+TAB)
git-svn-id: http://svn.miranda-ng.org/main/trunk@14015 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/TabSRMM/src/chat/window.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index c062388cb6..a597dac691 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -2495,6 +2495,13 @@ LABEL_SHOWWINDOW: } } + if (msg == WM_KEYDOWN && ((NMHDR*)lParam)->idFrom != IDC_CHAT_MESSAGE) { + if ((wp == VK_NEXT && isCtrl && !isShift) || (wp == VK_TAB && isCtrl && !isShift)) // CTRL-TAB (switch tab/window) + SendMessage(dat->pContainer->hwnd, DM_SELECTTAB, DM_SELECT_NEXT, 0); + else if ((wp == VK_PRIOR && isCtrl && !isShift) || (wp == VK_TAB && isCtrl && isShift)) // CTRL_SHIFT-TAB (switch tab/window) + SendMessage(dat->pContainer->hwnd, DM_SELECTTAB, DM_SELECT_PREV, 0); + } + if (msg == WM_KEYDOWN && wp == VK_TAB) { if (((NMHDR*)lParam)->idFrom == IDC_CHAT_LOG) { SetFocus(GetDlgItem(hwndDlg, IDC_CHAT_MESSAGE)); |