Skip to content

Improve cursor position after deletion #10389

Closed
@heheda123123

Description

@heheda123123

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

1 先随便写点内容,然后创建一个代码块,里面随便写点内容
image
2 光标从代码块最后开始删除,比如图中,按三次删除,会发现光标直接到了上一段的开头,应该是在末尾才对吧
image

Expected result

删光代码块内容后,光标到上一段的末尾

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.0.0
- Operating System: windows 11
- Browser (if used):

Log file

应该不用log

More information

No response

Activity

changed the title [-]从代码块中开始删除时光标位置不对[/-] [+]把代码块内容全部删除后光标位置不对[/+] on Feb 21, 2024
added a commit that references this issue on Feb 26, 2024
added this to the 3.0.1 milestone on Feb 26, 2024
changed the title [-]把代码块内容全部删除后光标位置不对[/-] [+]Distinguish cut, delete, backspace, alt+D cursor position after deletion[/+] on Feb 26, 2024
changed the title [-]Distinguish cut, delete, backspace, alt+D cursor position after deletion[/-] [+]Distinguish cut, delete, backspace and Alt+D cursor position after deletion[/+] on Feb 26, 2024
changed the title [-]Distinguish cut, delete, backspace and Alt+D cursor position after deletion[/-] [+]Improve cursor position after deletion[/+] on Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @Vanessa219@heheda123123

      Issue actions

        Improve cursor position after deletion · Issue #10389 · siyuan-note/siyuan