Skip to content
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

feat: graphical editor sentences hotkey #354

Conversation

ClodLingxi
Copy link
Contributor

Sentence 和 AddSentence 快捷键 (过时)

Sentence (不包括自定义)

(OUTER 为焦点在整个语句控件时触发)
(INNER 为焦点在语句控件内输入框时触发)

快捷键 动作 层级
Ctrl+Enter 执行该语句 INNER, OUTER
Alt+Enter 在该语句下插入新语句 INNER, OUTER
Shift+Enter 执行并跳转至下一句,如果没有则插入 INNER, OUTER
Ctrl+C 复制当前语句 OUTER
Ctrl+V 粘贴语句 OUTER
Ctrl+D 删除当前语句 OUTER
Ctrl+Shift+ArrowDown 与下方语句交换 OUTER
Ctrl+Shift+ArrowUp 与上方语句交换 OUTER
ArrowDown 向下移动 OUTER
ArrowUp 向上移动 OUTER

AddSentence (包括自定义,且储存至IEditorState

在AddSentence左下角切换设置模组,并点击对应按钮调整其快捷键

属性 类型 描述 示例
shortcuts string 代表快捷键组合的字符串。例如,"Ctrl+Enter""Alt+Enter" shortcuts: "Ctrl+Enter"
type commandType | "custom" 指定快捷键触发的动作类型。它可以是预定义的命令类型(如 commandType 枚举中的值),也可以是自定义的 "custom" type: commandType.run_sentence
initialText string? (可选) type"custom" 时,可以提供一个初始文本,用于快捷执行某指令(待写)。 initialText: "changeFigure:stand.png -left"

@ClodLingxi ClodLingxi closed this Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants