Skip to content

Keep the cursor consistent with the selected block #8918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
fenilgmehta opened this issue Aug 6, 2023 · 0 comments
Closed
3 tasks done

Keep the cursor consistent with the selected block #8918

fenilgmehta opened this issue Aug 6, 2023 · 0 comments
Assignees
Milestone

Comments

@fenilgmehta
Copy link

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

Go to a paragraph block b. Press Esc. Then keep the right arrow pressed and it will take you to the next paragraph block (i.e. c). But, the block selection remains at the previous block (i.e. b)
image

Expected result

Two options:

  1. Cursor should not be shown when block is selected/highlighted
  2. Block selection should move to the block which has the cursor (i.e. c in the situation demonstrated above)

I feel option 1 is preferred to avoid complexity and I do not see any use of a movable cursor when a block is selected.

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.9.8

Log file

-

More information

No response

Vanessa219 added a commit that referenced this issue Aug 8, 2023
@Vanessa219 Vanessa219 added this to the 2.10.0 milestone Aug 8, 2023
@Vanessa219 Vanessa219 changed the title Block selection not moving with cursor Keep the cursor consistent with the selected block Aug 8, 2023
Vanessa219 added a commit that referenced this issue Aug 8, 2023
Vanessa219 pushed a commit that referenced this issue Feb 6, 2025
* fix: 选中块之后无法通过快捷键复制块引用

fix #13956

- 如果焦点不在编辑器内,按快捷键后无法访问startContainer,会报错
- 优先获取选中块的块引用,其次获取选中文本的块引用

* fix: 移除多余的条件判断,选中块按下快捷键后块高亮不应该移动

fix #8918
mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
* fix: 选中块之后无法通过快捷键复制块引用

fix siyuan-note#13956

- 如果焦点不在编辑器内,按快捷键后无法访问startContainer,会报错
- 优先获取选中块的块引用,其次获取选中文本的块引用

* fix: 移除多余的条件判断,选中块按下快捷键后块高亮不应该移动

fix siyuan-note#8918
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants