mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
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:
@@ -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))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user