Move cursor to end of line when cursor is in last line and ArrowDown is pressed #2351
-
As the source code shows, this behavior is deliberately prevented. Most editors we're using everyday (whether to code or to write articles) have this behavior and I believe we're used to it. Could your give me a good reason for preventing it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, I think this is a great question about how BlockSuite works! Based on the multiple-contenteditable design in BlockSuite, thought each text block supports multiple wrapped lines, it has a standalone boundary by default. So when you are pressing The default behavior is to move the cursor to A, which this is not expected. Instead, we wrote a bit code to locate the cursor to B based on the cursor position, making the behavior intuitive. |
Beta Was this translation helpful? Give feedback.
Sure, I've created an issue #2417 from this discussion and a PR #2418 with the fix.