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
This commit is contained in:
@@ -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() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user