From f7abc9c7462c7baea51af7f339f02d1b9544c047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 8 Nov 2013 15:24:46 +0000 Subject: [PATCH] Show keyboard focus in generic wxDVC even with single editable column. Previously, keyboard focus indicator was only shown if there were multiple editable columns. This was confusing to the user in applications where the number of editable columns changes: somethings focus would work, sometimes not. (In reality, it worked in both cases, but wasn't visually indicated.) Just always show the indicator if there are any editable columns. Notice that the indicator is only painted after the user pressed left or right arrows, thus indicating interest in keyboard focus. Without that, only the regular indicator is shown (this is the same as before this commit). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datavgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index d36e86116b..6b4bf50e75 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -4454,7 +4454,7 @@ void wxDataViewMainWindow::OnColumnsCountChanged() editableCount++; } - m_useCellFocus = (editableCount > 1); + m_useCellFocus = (editableCount > 0); UpdateDisplay(); }