X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf6461219dad12e84f5be1806e184afd2e0d6fc1..9802983f157c32177e92e8c0f6b1ce44aec0ebca:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 712326e611..4719021146 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -552,7 +552,7 @@ void wxGridCellEditor::HandleReturn(wxKeyEvent& event) bool wxGridCellEditor::IsAcceptedKey(wxKeyEvent& event) { // accept the simple key presses, not anything with Ctrl/Alt/Meta - return !(event.ControlDown() || event.AltDown()); + return !(event.ControlDown() || event.AltDown() || event.GetKeyCode() == WXK_SHIFT); } void wxGridCellEditor::StartingKey(wxKeyEvent& event) @@ -10196,7 +10196,7 @@ wxRect wxGrid::BlockToDeviceRect( const wxGridCellCoords &topLeft, } else { - rect = wxRect( 0, 0, 0, 0 ); + rect = wxRect(0,0,0,0); } cellRect = CellToRect( bottomRight ); @@ -10271,7 +10271,7 @@ wxRect wxGrid::BlockToDeviceRect( const wxGridCellCoords &topLeft, m_gridWin->GetClientSize( &cw, &ch ); if (right < 0 || bottom < 0 || left > cw || top > ch) - return wxRect( 0, 0, 0, 0); + return wxRect(0,0,0,0); rect.SetLeft( wxMax(0, left) ); rect.SetTop( wxMax(0, top) );