From 5923d34661eb80316c13b829cd9829af580c4f12 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 9 May 2011 15:21:12 +0000 Subject: [PATCH] Handle the WM_GETDLGCODE message on Windows so that the browser receives all keyboard input when used as a dialog window (issue # 223). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@226 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/webwidget_host_win.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcef/webwidget_host_win.cc b/libcef/webwidget_host_win.cc index 0cd5cd058..847a3ab2e 100644 --- a/libcef/webwidget_host_win.cc +++ b/libcef/webwidget_host_win.cc @@ -183,6 +183,9 @@ LRESULT CALLBACK WebWidgetHost::WndProc(HWND hwnd, UINT message, WPARAM wparam, case WM_NOTIFY: host->OnNotify(0, (NMHDR*)lparam); break; + + case WM_GETDLGCODE: + return DLGC_WANTALLKEYS; } }