Don't generate wxEVT_CHAR_HOOK events while the mouse is captured.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Mar 2011 11:55:01 +0000 (11:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Mar 2011 11:55:01 +0000 (11:55 +0000)
commit5c16a6995238728beeaf664d4f47cc573cc89c79
tree2bb855c33937b437faf7c0023811e78c24d7b92f
parentff4504866553ba7672efd8efa9f6120af18fc5ec
Don't generate wxEVT_CHAR_HOOK events while the mouse is captured.

This prevents the parent TLW from interfering with the keyboard handling of
the window that captured the mouse which very often needs Escape for itself to
cancel the capture.

In particular, this fixes the problems with Escape closing the entire dialog
containing the controls instead of closing just the combobox drop down or a
popup menu in wxMSW.

Also modify wxGTK for consistency and update the documentation.

Closes #12952.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
interface/wx/event.h
src/gtk/window.cpp
src/msw/window.cpp