From: Václav Slavík Date: Sat, 27 Aug 2011 16:44:45 +0000 (+0000) Subject: Use spacebar to activate items in generic wxDataViewCtrl too. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e1f30123c9bc3990139f5cc5e0008643e1943054 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 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 6b9456a636..8eb2d721da 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -3308,6 +3308,7 @@ void wxDataViewMainWindow::OnChar( wxKeyEvent &event ) switch ( event.GetKeyCode() ) { case WXK_RETURN: + case WXK_SPACE: { wxDataViewEvent le(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, parent->GetId());