Skip to content

Commit

Permalink
Merge pull request #287 from albanf/patch-2
Browse files Browse the repository at this point in the history
Prevent activation of default button when pressing Enter to submit changes
  • Loading branch information
tonytomov committed Apr 2, 2012
2 parents 82ceb5d + 6ac100a commit 7aa1569
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 7aa1569

Please sign in to comment.