Use spacebar to activate items in generic wxDataViewCtrl too.
Pressing Spacebar now behaves the same as Enter in the generic control, for consistency with the GTK+ control and native Windows list controls. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a2d3c415d7
commit
e1f30123c9
@ -3308,6 +3308,7 @@ void wxDataViewMainWindow::OnChar( wxKeyEvent &event )
|
|||||||
switch ( event.GetKeyCode() )
|
switch ( event.GetKeyCode() )
|
||||||
{
|
{
|
||||||
case WXK_RETURN:
|
case WXK_RETURN:
|
||||||
|
case WXK_SPACE:
|
||||||
{
|
{
|
||||||
wxDataViewEvent le(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED,
|
wxDataViewEvent le(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED,
|
||||||
parent->GetId());
|
parent->GetId());
|
||||||
|
Loading…
Reference in New Issue
Block a user