From: dpage Date: Thu, 8 Jan 2009 13:35:14 +0000 (+0000) Subject: Restore old behaviour of the Edit Grid where moves to the next column, but... X-Git-Url: http://git.postgresql.org/gitweb/static/%7B%7Bpgdulink%28?a=commitdiff_plain;h=8492a0d78d8dca87f024bfa735c95e04feb734cb;p=users%2Fquan74%2Fpgadmin-import.git Restore old behaviour of the Edit Grid where moves to the next column, but moves to the next row rather than both changing column [mei ben] git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7542 a7884b65-44f6-0310-8a51-81a127f17b15 --- diff --git a/CHANGELOG b/CHANGELOG index cccac07aa..b65a64e92 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -36,9 +36,12 @@ Changes Date Dev Ver Change details ---------- --- ----- -------------- -2008-01-07 DP 1.9.0 Add support for direct debugging of functions with +2009-01-08 DP 1.9.0 Restore old behaviour of the Edit Grid where + moves to the next column, but moves to the next + row rather than both changing column [mei ben] +2009-01-07 DP 1.9.0 Add support for direct debugging of functions with variadic parameters. -2008-01-05 GL 1.9.0 Add -S and -Sc command line options to open a server +2009-01-05 GL 1.9.0 Add -S and -Sc command line options to open a server status window 2009-01-01 DP 1.9.0 Add support for the many new node types in Postgres 8.4 [Ashesh Vashi] diff --git a/pgadmin/frm/frmEditGrid.cpp b/pgadmin/frm/frmEditGrid.cpp index aaa15acac..ba64c2904 100644 --- a/pgadmin/frm/frmEditGrid.cpp +++ b/pgadmin/frm/frmEditGrid.cpp @@ -811,20 +811,27 @@ void frmEditGrid::OnKey(wxKeyEvent &event) } else { - if (curcol == sqlGrid->GetNumberCols()-1) + if( keycode!=WXK_NUMPAD_ENTER ) { - curcol=0; - currow++; - // locate first editable column - while (sqlGrid->IsReadOnly(currow, curcol) && curcol < sqlGrid->GetNumberCols()) - curcol++; - // next line is completely read-only - if (curcol == sqlGrid->GetNumberCols()) - return; + if (curcol == sqlGrid->GetNumberCols()-1) + { + curcol=0; + currow++; + // locate first editable column + while (sqlGrid->IsReadOnly(currow, curcol) && curcol < sqlGrid->GetNumberCols()) + curcol++; + // next line is completely read-only + if (curcol == sqlGrid->GetNumberCols()) + return; + } + else + curcol++; + } + else // ( keycode==WXK_NUMPAD_ENTER ) + { + currow++; } - else - curcol++; OnSave(ev); sqlGrid->SetGridCursor(currow, curcol);