Stay in same row with left and right arrow keys

Tags: #<Tag:0x00007efc6de0c1b0>

Hi,

when i go to the first or last column in a row and i press left (firt column) or right (last column) arrow key the cursor moves to the next or previous row. What i want is that the cursor stay in the same row (doesnt move to the next or previous). If i want move me between rows then i have to press up or down arrows key. I hope you can help me please.

Regards.

Hey @link.zda

you can use the beforeKeyDown hook with the preventDefault() and stopImmediatePropagation() methods on a desired key. You will also need the getSelected method to check on what column index you are.