enhance(ux): table row/cell navigation (#11837)

* enhance(ux): up/down to navigate table rows

* enhance: remove block id+uuid class

Use `blockid`.

* enhance: arrowleft to select cell when a table row has been selected

* wip: table cell navigation

* feat: up/down/left/right table cell navigation

* enhance(ux): scroll to cell when it's not visible

* fix: save block content when exit title cell popup

* fix: table keyboard navigation doesn't work on virtualized table

The solution is to preload more rows for virtualized tables.
This commit is contained in:
Tienson Qin
2025-05-02 05:47:58 +08:00
committed by GitHub
parent aea2dd00a0
commit 68417bbb01
11 changed files with 270 additions and 93 deletions

View File

@@ -66,7 +66,7 @@
(defn select-block!
[block-uuid]
(let [blocks (js/document.getElementsByClassName (str "id" block-uuid))]
(let [blocks (util/get-blocks-by-id block-uuid)]
(when (seq blocks)
(state/exit-editing-and-set-selected-blocks! blocks))))