Forum Stats

  • 3,768,662 Users
  • 2,252,827 Discussions


Navigating in Interactive Grid using Arrow Keys (Edit Mode)

Roxy rollers
Roxy rollers Member Posts: 69 Red Ribbon

Hello folks,

   I am trying to navigate the Interactive Grid by using Arrow Keys to go to the Next and Previous record within the Grid in Edit Mode. As we know, if you press Enter, it takes you to the next record and Shift-Enter takes you to the previous record. I was able to simulate going to the next record but not the previous record. Here is my code to go to next record. Any idea of how to simulate the Shift-Enter? There is no one key for that as it's a combination of 13 (Enter) and Shift (16).

$("#source").keydown(function(e) {  if (e.key === 'ArrowDown') {    e.preventDefault();    var e = jQuery.Event("keydown");    e.which = 13    $('#source').trigger(e);  }});

Any help in this regard would be great.