fix duplicate events for selection keys after the last change (see #626)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-06 16:13:23 +00:00
parent 8c4209f7b3
commit aa8166dd51
2 changed files with 71 additions and 68 deletions

View File

@@ -244,7 +244,13 @@ protected:
return !HandleTreeEvent(event) || event.IsAllowed();
}
// handle a key event in a multi-selection control
// generate a wxEVT_KEY_DOWN event from the specified WPARAM/LPARAM values
// having the same meaning as for WM_KEYDOWN, return true if it was
// processed
bool MSWHandleTreeKeyDownEvent(WXWPARAM wParam, WXLPARAM lParam);
// handle a key event in a multi-selection control, should be only called
// for keys which can be used to change the selection
//
// return true if the key was processed, false otherwise
bool MSWHandleSelectionKey(unsigned vkey);