MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / simulateKeyboardTap

Method simulateKeyboardTap

src/main/api/plugin/input.ts:290–297  ·  view source on GitHub ↗
(key: string, modifiers: string[] = [])

Source from the content-addressed store, hash-verified

288 }
289
290 private simulateKeyboardTap(key: string, modifiers: string[] = []): boolean {
291 try {
292 return WindowManager.simulateKeyboardTap(key, ...modifiers)
293 } catch (error: unknown) {
294 console.error('[PluginInput] 模拟键盘按键失败:', error)
295 return false
296 }
297 }
298
299 private simulateMouseMove(x: number, y: number): boolean {
300 try {

Callers 1

setupIPCMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected