Trigger an action when tabbing out of final row

Trigger an action when tabbing out of final row

unicomdevunicomdev Posts: 2Questions: 1Answers: 0

Hello,

I have an inline editable table which allows to tab through the columns, i'm looking for a way to trigger an action once you tab out of the last column of the last row, in this case creating a new row. Creating the new row isn't an issue, but detecting the tabbing out of the last row is.

I've looked through the manual but i'm not quite sure what / where to look for.

Any tips?

Thanks.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 9,174Questions: 0Answers: 1,533
    Answer ✓

    That was a fun challenge (I won't tell you how long I spent on it!). This here is doing what you want. I used this SO thread to detect whether the blur was caused by a click or the tab that you want - and it seems to be doing the trick.

    Can you take a look and see if that helps, please.

    Colin

  • unicomdevunicomdev Posts: 2Questions: 1Answers: 0

    Wow very nice colin, seems to do exactly what I need. I certainly did not expect a working example, thanks so much for taking the time of doing this tho, really appreciate it!

Sign In or Register to comment.