X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f460c29d593da752aa2bac1c178d2c58ee563ff3..8b713759b615fc1530d1f476f37d6d213e7934a5:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 6293c3cd99..a8378fb171 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -570,6 +570,12 @@ bool wxGridCellEditor::IsAcceptedKey(wxKeyEvent& event) int key = 0; bool keyOk = true; +#ifdef __WXGTK20__ + // If it's a F-Key or other special key then it shouldn't start the + // editor. + if (event.GetKeyCode() >= WXK_START) + return false; +#endif #if wxUSE_UNICODE // if the unicode key code is not really a unicode character (it may // be a function key or etc., the platforms appear to always give us a @@ -7963,19 +7969,6 @@ void wxGrid::ShowCellEditControl() editor->GetControl()->GetPosition().y ); editor->Show( true, attr ); - int colXPos = GetColLeft(col); -// for (int i = 0; i < m_currentCellCoords.GetCol(); i++) -// { -// colXPos += GetColSize( i ); -// } - -// int xUnit = 1, yUnit = 1; -// GetScrollPixelsPerUnit( &xUnit, &yUnit ); -// if (col != 0) -// Scroll( colXPos / xUnit - 1, GetScrollPos( wxVERTICAL ) ); -// else -// Scroll( colXPos / xUnit, GetScrollPos( wxVERTICAL ) ); - // recalc dimensions in case we need to // expand the scrolled window to account for editor CalcDimensions();