From 9d0c056be4cd09fb896476c3f48f651ac2ef3b30 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 6 Apr 2000 22:25:49 +0000 Subject: [PATCH] added autoscroll flag for the text editor enabled SPACE to activate the editor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 90ddc8624c..65b5557162 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -494,7 +494,7 @@ void wxGridCellTextEditor::Create(wxWindow* parent, m_control = new wxTextCtrl(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize #if defined(__WXMSW__) - , wxTE_MULTILINE | wxTE_NO_VSCROLL // necessary ??? + , wxTE_MULTILINE | wxTE_NO_VSCROLL | wxTE_AUTO_SCROLL #endif ); @@ -5286,7 +5286,7 @@ void wxGrid::OnKeyDown( wxKeyEvent& event ) event.ControlDown()) && ((isalnum((int)event.KeyCode()) && (event.KeyCode() < 256 && event.KeyCode() >= 0)) || - event.KeyCode() == WXK_F2) && + event.KeyCode() == WXK_F2 || event.KeyCode() == WXK_SPACE) && !IsCellEditControlEnabled() && CanEnableCellControl() ) {