]> git.saurik.com Git - wxWidgets.git/commit
Do use IsEscapeKey() in wxDialog escape key handling.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Oct 2012 08:32:49 +0000 (08:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Oct 2012 08:32:49 +0000 (08:32 +0000)
commitf821bc36178aded12912e8638ba0c6e3c018d1bf
treeec43e628f6d40c209b9e4da7edd82a71af953f06
parentb785d15d500114966989c4355cd6779a0a66ab75
Do use IsEscapeKey() in wxDialog escape key handling.

This method was added back in r40686 but was never actually used anywhere. Do
use it in wxDialogBase::OnCharHook() now instead of hard-coding the check for
WXK_ESCAPE, this should allow using Cmd+. to work like Escape under Mac which
was apparently the intention of the code in src/osx/dialog_osx.cpp.

Also fix IsEscapeKey() itself to ignore any modifiers as at least under MSW
Esc always closes the dialog, even if Shift or Alt is pressed.

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