Send generic wxListCtrl wxEVT_COMMAND_LIST_KEY_DOWN events from OnKeyDown rather...
authorSteve Lamerton <steve.lamerton@gmail.com>
Wed, 22 Sep 2010 08:48:15 +0000 (08:48 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Wed, 22 Sep 2010 08:48:15 +0000 (08:48 +0000)
commit92d9d10f80420429c4291394c80b3814999074e4
tree81404c6e0b5f11771d2ddfb4040eab6ac4d205d6
parent2f0312f0c4150de91d2edb43f92217557dc9486b
Send generic wxListCtrl wxEVT_COMMAND_LIST_KEY_DOWN events from OnKeyDown rather than OnChar. Also remove the HasCurrent check. These changes bring the generic control into line with the control under wxMSW. Re-enable the previously failing unit test and document that the key down event might not have a valid item associated with it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
interface/wx/listctrl.h
src/generic/listctrl.cpp
tests/controls/listbasetest.cpp