keytable how to make a cell gain focus upon mouse click

keytable how to make a cell gain focus upon mouse click

mustafamondmustafamond Posts: 40Questions: 11Answers: 0

I am using they keytable extention. Initialization and setting initial focus on a cell is working, and I can move focus about fine using the arrow keys. Clicking on a cell with the mouse does nothing - how do I enable mouse click to make a cell gain focus using keytable? It looks like it maybe should be automatic, but it is not working for me, so is there a way to enable that?

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Answer ✓

    The basic example works.
    https://datatables.net/extensions/keytable/examples/initialisation/simple

    It's impossible to know what you have done without seeing your code.

  • mustafamondmustafamond Posts: 40Questions: 11Answers: 0

    There was another function that set the click event for items in the table. Initially, I just removed that click event since I did not want to have to modify third party code. Instead, I disabled the initial assignment of the click event in the third party code, and now and it works fine. Thank you

This discussion has been closed.