-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrow key navigation in table block #14675
Comments
Currently, this roughly how the logic is:
The problem is (1): DOM positioning may not be just vertical, but also horizontal, as is the case in a table block. Similar to #14462, we come to the same conclusion: we're looking for a visual position, but we're checking DOM position. The solution is to find the closest element vertically that can receive the caret in the closest block. If there is no such element, the block should be selected. Practically this probably means that we have to test if the browser can set a range at any |
Noting here, as per the issue linked above, that currently it's impossible to move focus with the left and right arrow keys to a cell that's hidden from view. So if we have a wide table with horizontal scroll: with the cursor at the "basil" column I am not able, by using the right arrow, to navigate to the next column. If I scroll the hidden column into view, I am able to focus it normally. |
@tellthemachines could you open a new issue for that? It seems unrelated. |
The up/down arrow issue should be fixed in #22105. |
Spun off from #14462 (comment)
When the caret is at the table block:
The text was updated successfully, but these errors were encountered: