@@ -3026,7 +3026,7 @@ export class SlickGrid {
3026
3026
// don't steal it back - keyboard events will still bubble up
3027
3027
// IE9+ seems to default DIVs to tabIndex=0 instead of -1, so check for cell clicks directly.
3028
3028
if ( e . target != document . activeElement || $ ( e . target ) . hasClass ( "cell" ) ) {
3029
- focus ( ) ;
3029
+ this . focus ( ) ;
3030
3030
}
3031
3031
}
3032
3032
@@ -3414,7 +3414,7 @@ export class SlickGrid {
3414
3414
var item = this . getDataItem ( this . activeRow ) ;
3415
3415
3416
3416
if ( this . trigger ( this . onBeforeEditCell , { row : this . activeRow , cell : this . activeCell , item : item , column : columnDef } ) === false ) {
3417
- focus ( ) ;
3417
+ this . focus ( ) ;
3418
3418
return ;
3419
3419
}
3420
3420
@@ -3452,7 +3452,7 @@ export class SlickGrid {
3452
3452
// if the commit fails, it would do so due to a validation error
3453
3453
// if so, do not steal the focus from the editor
3454
3454
if ( this . getEditorLock ( ) . commitCurrentEdit ( ) ) {
3455
- focus ( ) ;
3455
+ this . focus ( ) ;
3456
3456
if ( this . options . autoEdit ) {
3457
3457
this . navigateDown ( ) ;
3458
3458
}
@@ -3461,7 +3461,7 @@ export class SlickGrid {
3461
3461
3462
3462
private cancelEditAndSetFocus ( ) {
3463
3463
if ( this . getEditorLock ( ) . cancelCurrentEdit ( ) ) {
3464
- focus ( ) ;
3464
+ this . focus ( ) ;
3465
3465
}
3466
3466
}
3467
3467
@@ -3854,7 +3854,7 @@ export class SlickGrid {
3854
3854
if ( ! this . getEditorLock ( ) . commitCurrentEdit ( ) ) {
3855
3855
return true ;
3856
3856
}
3857
- focus ( ) ;
3857
+ this . focus ( ) ;
3858
3858
3859
3859
var tabbingDirections = {
3860
3860
up : - 1 ,
@@ -3988,7 +3988,7 @@ export class SlickGrid {
3988
3988
3989
3989
// if no editor was created, set the focus back on the grid
3990
3990
if ( ! this . currentEditor ) {
3991
- focus ( ) ;
3991
+ this . focus ( ) ;
3992
3992
}
3993
3993
}
3994
3994
0 commit comments