Skip to content

Commit

Permalink
Prevent activation of default button when pressing Enter to submit ch…
Browse files Browse the repository at this point in the history
…anges.
  • Loading branch information
albanf committed Apr 2, 2012
1 parent 1888fb1 commit 6ac100a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/grid.celledit.js
Expand Up @@ -91,7 +91,11 @@ $.jgrid.extend({
$($t).jqGrid("restoreCell",iRow,iCol);
}
} //ESC
if (e.keyCode === 13) {$($t).jqGrid("saveCell",iRow,iCol);}//Enter
if (e.keyCode === 13) {
$($t).jqGrid("saveCell",iRow,iCol);}
// Prevent default action
return false;
} //Enter
if (e.keyCode === 9) {
if(!$t.grid.hDiv.loading ) {
if (e.shiftKey) {$($t).jqGrid("prevCell",iRow,iCol);} //Shift TAb
Expand Down

0 comments on commit 6ac100a

Please sign in to comment.