Key-focus event
Key-focus event
RagnarGrootKoerkamp
Posts: 48Questions: 14Answers: 1
The key-focus page states that it will also be fired when a cell is clicked. The editor inline editing example with tabbing to the next cell has two event handlers, for both the key-focus and click events. My local tests show that the click event can be omitted, because the key-focus event will fire anyway. This raises two questions:
- Why is the
clickevent handler not omitted? - How does keytable deal with the
:not(:first-child)specifier? (All 'special' columns like an 'edit' button and row-reorder keys do not fire this event.)
Edit:
The second question just answered itself: I was using a .editable class on inline-editable cells in the keys.columns option. Apperently, this uses the editable class of the column, not of the individual cells.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Good question. Its due to the discussion in this thread. Basically if the cell had focus already, and then you clicked it, then the
key-focusevent wouldn't be triggered (since it doesn't gain focus - it already has it).Allan