Skip to content

增强锚文本的键盘操作 #4979

Closed
Closed
@Vanessa219

Description

@Vanessa219
  • 光标在锚文本内可使用 ctrl+/ 唤出菜单
    菜单出现时光标定位到输入框中
    ESC/Enter 关闭菜单时,光标回到编辑器原有位置

https://ld246.com/article/1653184732199

Activity

self-assigned this
on May 22, 2022
added this to the 2.0.12 milestone on May 22, 2022
mindstudy

mindstudy commented on May 22, 2022

@mindstudy

"光标在锚文本内可使用 ctrl+/ 唤出菜单",这个操作:

a. 鼠标直接点击锚文字不行,会跳转到引用块。
b. 鼠标点击锚文字左侧或右侧,再按方向键才能进入,需要两步。
c. 特殊情况,如果锚文字只有一个字,这种情况就没法方向键进入锚文字内。

有没有可能实现:鼠标点击锚文字左侧或右侧,使用 ctrl+/ 唤出菜单?

AugustTuan

AugustTuan commented on May 22, 2022

@AugustTuan

这个功能好,顶一下

AugustTuan

AugustTuan commented on May 22, 2022

@AugustTuan

进入菜单时,光标可以选中文字吗
大部分情况下都可能会修改原文的

AugustTuan

AugustTuan commented on May 22, 2022

@AugustTuan

"光标在锚文本内可使用 ctrl+/ 唤出菜单",这个操作:

a. 鼠标直接点击锚文字不行,会跳转到引用块。 b. 鼠标点击锚文字左侧或右侧,再按方向键才能进入,需要两步。 c. 特殊情况,如果锚文字只有一个字,这种情况就没法方向键进入锚文字内。

有没有可能实现:鼠标点击锚文字左侧或右侧,使用 ctrl+/ 唤出菜单?

我看原帖也是这么建议的,估计技术上不好实现吧

Vanessa219

Vanessa219 commented on May 22, 2022

@Vanessa219
MemberAuthor

@mindstudy 在锚文本内有右侧都可以,左侧不支持

@qifengle1998 嗯,你说的应该就是第二点

woaihuangxueying

woaihuangxueying commented on May 23, 2022

@woaihuangxueying
  • 光标在锚文本内可使用 ctrl+/ 唤出菜单
    菜单出现时光标定位到输入框中
    ESC/Enter 关闭菜单时,光标回到编辑器原有位置

https://ld246.com/article/1653184732199

试了一下新版,Enter好像没有办法关闭菜单,只有Esc可以

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@mindstudy@AugustTuan@woaihuangxueying

      Issue actions

        增强锚文本的键盘操作 · Issue #4979 · siyuan-note/siyuan