diff --git a/src/features/edit/js/gridEdit.js b/src/features/edit/js/gridEdit.js index 2576e6fd30..4099303659 100644 --- a/src/features/edit/js/gridEdit.js +++ b/src/features/edit/js/gridEdit.js @@ -958,7 +958,7 @@ if (uiGridCtrl && uiGridCtrl.grid.api.cellNav) { var viewPortKeyDownUnregister = uiGridCtrl.grid.api.cellNav.on.viewPortKeyPress($scope, function (evt, rowCol) { if (uiGridEditService.isStartEditKey(evt)) { - ngModel.$setViewValue(String.fromCharCode(evt.keyCode), evt); + ngModel.$setViewValue(String.fromCharCode( typeof evt.which === 'number' ? evt.which : evt.keyCode), evt); ngModel.$render(); } viewPortKeyDownUnregister();