I am using ui-grid
with ui-grid-selection
and ui-grid-cellNav
modules.
I am able to navigate through the grid according to the keys behavior mentioned in documentation.
I want to change the behaviour of TAB
and ENTER
keys when using with cellNav
.
Can someone please suggest a way to do it.
When TAB
is pressed I want to come out of focus from the grid.
When ENTER
is pressed I want to open hyperlink of the selected row.
You can change the behaviour of key pressing in
gridApi.cellNav.on.viewPortKeyDown
function.Removing
ui-grid-cell-focus
gives only visual effect but, using arrows, you can still go to surrounding cells. If you don't want that, you can try to programmatically change focused element or prevent default action of other navigation keys.I don't exactly undestand what do you want to do on enter press.