Ignore WM_CLOSE generated by wxMSW edit control when Escape is pressed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jul 2011 10:50:51 +0000 (10:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jul 2011 10:50:51 +0000 (10:50 +0000)
commitd19d14c5505b969967103093ec2f8e600793f218
tree47654b688f4c93619b966e0630017742787dc4d3
parent1dfe47d0227574a78c4c2bea24c70d39a1405245
Ignore WM_CLOSE generated by wxMSW edit control when Escape is pressed.

Multiline edit control posts WM_CLOSE to its parent window when Escape key is
pressed inside it for some reason. This is unwanted as it totally bypasses our
logic for only closing the dialog when Escape is pressed if there is a
Cancel-like button in it, so suppress this behaviour by not letting the edit
control to get Escape at all.

Closes #12501.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/textctrl.cpp