Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Simplify keyboard shortcut comments https://github.com/siyuan-note/siyuan/issues/18698

Daniel86d75b21b563
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index 65707b58ab..5b786a1184 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -781,7 +781,7 @@ interface ILayoutJSON extends ILayoutOptions {
interface ICommand {
langKey: string, // 用于区分不同快捷键的 key, 同时作为 i18n 的字段名
langText?: string, // 显示的文本, 指定后不再使用 langKey 对应的 i18n 文本
- hotkey?: string, // 快捷键,默认为空字符串,不能使用单个字符或 Shift+单个字符
+ hotkey?: string, // 快捷键,默认为空字符串
customHotkey?: string,
callback?: () => void // 其余回调存在时将不会触发
globalCallback?: () => void // 焦点不在应用内时执行的回调
@@ -802,7 +802,7 @@ interface IPluginDockTab {
position: TPluginDockPosition,
size: Config.IUILayoutDockPanelSize,
icon: string,
- hotkey?: string, // 快捷键,不能使用单个字符或 Shift+单个字符
+ hotkey?: string,
title: string,
index?: number
show?: boolean
diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.ts
index 14c63b254f..19411ec6d9 100644
--- a/app/src/types/protyle.d.ts
+++ b/app/src/types/protyle.d.ts
@@ -391,7 +391,7 @@ interface IMenuItem {
lang?: string;
/** svg 图标 */
icon?: string;
- /** 快捷键,不能使用单个字符或 Shift+单个字符 */
+ /** 快捷键 */
hotkey?: string;
/** 提示的位置 */
tipPosition?: string;