diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/syntax/syntaxedit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/syntax/syntaxedit.c b/ui/syntax/syntaxedit.c index 70ebca63..2e53b011 100644 --- a/ui/syntax/syntaxedit.c +++ b/ui/syntax/syntaxedit.c @@ -362,6 +362,14 @@ static LRESULT CALLBACK child_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lP case WM_THEMECHANGED: highlight_text(hWnd); break; + case WM_GETDLGCODE: { + MSG *m = (MSG *)lParam; + LRESULT lres = parent_proc(hWnd, Msg, wParam, lParam); + lres &= ~DLGC_WANTTAB; + if (m && m->message == WM_KEYDOWN && m->wParam == VK_TAB && GetKeyState(VK_CONTROL) >= 0) + lres &= ~DLGC_WANTMESSAGE; + return lres; + } } return parent_proc(hWnd, Msg, wParam, lParam); } |