KeyTable add parameter to the focus event so we can decide which column to focus

KeyTable add parameter to the focus event so we can decide which column to focus

RagingTrollRagingTroll Posts: 34Questions: 3Answers: 0

It would be nice to add an extra parameter to the focus event that will represent the event that triggered that focus (click, tab, shift+tab, ...).

I need this because I need to skip certain cells but in order to do that I need to know in which direction to go (left or right).

Example:
Suppose we have 6 columns and we are currently focused on the cell in the third column. When tab is pressed, normally the cell in the fourth column is focused, BUT if we do not want that cell to be focused, we need to know what the user pressed in order to decide what to focus.

The solution I came up with was to add the event parameter to focus callback in the source

Example:
keys.event.focus(null, null, function (td, x, y, event)

This discussion has been closed.