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
This commit is contained in:
@@ -1085,7 +1085,7 @@ protected:
|
||||
@event{EVT_LIST_ITEM_RIGHT_CLICK(id, func)}
|
||||
The right mouse button has been clicked on an item.
|
||||
@event{EVT_LIST_KEY_DOWN(id, func)}
|
||||
A key has been pressed.
|
||||
A key has been pressed. GetIndex() may be -1 if no item is selected.
|
||||
@event{EVT_LIST_INSERT_ITEM(id, func)}
|
||||
An item has been inserted.
|
||||
@event{EVT_LIST_COL_CLICK(id, func)}
|
||||
|
Reference in New Issue
Block a user