You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general, if you press tab, you are going to move to the next control in the UI. However, this does not happen with shinyMatrix. If the matrix is not focused, you can't focus it pressing tab from a previous control. If the matrix is focused, you can't leave it by pressing tab.
The expected behavior is to be able to focus in and focus out using tab, and therefore triggering store of the changed data on focus out (as if you were clicking outside with the mouse)
The text was updated successfully, but these errors were encountered:
thanks for using our package and reporting this behaviour. The use of tab is a bit overloaded, because we also use it to navigate between columns in the matrix. You would probably expect this behaviour:
Tabbing from outside into matrix: Set focus to the cell at the top-left
Tabbing inside the matrix (except last column): Move to the next column
Tabbing from the last column: Set focus to the next element on the page
Tabbing backwards inside the matrix (except first column): Move to previous column
Tabbing backwards from the first column: Set focus on the previous element on the page
It's probably better to keep the cursor keys for column and row change, at least in browse mode.
In insert mode (when editing a column), enter should be mapped to store value and go next row, and the same for arrow up and down. The left and right of course cannot be mapped as such, because in insert mode you want to be able to move the cursor on the edited content.
I am not sure about the HIG for something like this on Microsoft excel and equivalents. If there's something like this, it's always a safer option to imitate what they have done, because it becomes more or less the accepted standard behavior for a matrix-like control.
In general, if you press tab, you are going to move to the next control in the UI. However, this does not happen with shinyMatrix. If the matrix is not focused, you can't focus it pressing tab from a previous control. If the matrix is focused, you can't leave it by pressing tab.
The expected behavior is to be able to focus in and focus out using tab, and therefore triggering store of the changed data on focus out (as if you were clicking outside with the mouse)
The text was updated successfully, but these errors were encountered: