Skip to content

Ctrl+A, Ctrl+Z, Ctrl+Y Key takes more time #4478

Answered by dosubot bot
manojrampur-tiger asked this question in Q&A
Discussion options

You must be logged in to vote

The slowness with Ctrl+A, Ctrl+Z, and Ctrl+Y is likely due to how Plate and Slate handle selection and undo/redo, especially with large documents or complex tables.

  • Ctrl+A (select all) is handled in Plate’s SlateReactExtensionPlugin via an onKeyDown handler, but the actual selection logic relies on Slate’s selection transforms. If your document is large, the selection operation can be slow because it traverses the entire node tree. You can find this logic in Plate’s SlateReactExtensionPlugin and hotkeys.ts for shortcut detection, but the heavy lifting is in Slate’s transforms and selection logic see source.

  • Ctrl+Z (undo) and Ctrl+Y (redo) are managed by Plate’s HistoryPlugin, which s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by manojrampur-tiger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working performance issue
1 participant
Converted from issue

This discussion was converted from issue #4476 on July 11, 2025 09:50.