Replies: 1 comment
-
|
There isn't currently a hook at the right time for doing this in a nice way, when There's also some stuff for handling this sort of thing with shadow roots, but you'd have to have a wrapper node around the code node for that since the children of the code node are not blocks themselves. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is what I have achieved so far:
Untitled.mov
What I ultimately want to achieve is that when the cursor starts selecting from a CodeNode, only nodes inside the CodeNode can be selected, and nodes outside of the CodeNode are not allowed to be selected. I want to limit the selection range.
This is my current code:
I implemented the effect of limiting the selection area by Shift+Click:
Screen.Recording.2025-10-06.at.15.09.59.mov
I have tried many ways but can't achieve it perfectly. Is there a better way?
Thanks in advance. 🙏
Beta Was this translation helpful? Give feedback.
All reactions