@linkdesk/contracts 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/linkdesk.d.ts +4 -0
- package/package.json +1 -1
package/linkdesk.d.ts
CHANGED
|
@@ -1264,6 +1264,10 @@ export interface KeybindingsAPI {
|
|
|
1264
1264
|
saveUserKeybindings(): Promise<void>;
|
|
1265
1265
|
removeKeybindingForCommand(commandId: string): Promise<void>;
|
|
1266
1266
|
resetKeybindingToDefault(commandId: string): Promise<void>;
|
|
1267
|
+
/** 清空该命令的绑定——「这条命令不要键」:删现存全部 + 抑制内置/插件默认(重启后仍无键),
|
|
1268
|
+
* 直到用户重新绑定或「恢复为默认」。⚠️ 与 resetKeybindingToDefault 的区别=「作者声明过键」时
|
|
1269
|
+
* reset 会把那个键顶回来(回退),本方法不会。需 LinkDesk 0.2.46+(旧壳上无此方法 ⇒ 调用方先探测) */
|
|
1270
|
+
clearKeybindingForCommand(commandId: string): Promise<void>;
|
|
1267
1271
|
findKeybindingForCommand(commandId: string): Promise<Keybinding | undefined>;
|
|
1268
1272
|
setKeybindingCaptureActive(active: boolean): Promise<void>;
|
|
1269
1273
|
// 纯数据形参——contextBridge 结构化克隆丢 KeyboardEvent 原生属性(.key/.code 是 C++ getter),
|