MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / unregisterQuickCaptureHotkey

Function unregisterQuickCaptureHotkey

apps/desktop/src/main/index.ts:3081–3089  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3079}
3080
3081function unregisterQuickCaptureHotkey(): void {
3082 if (!registeredQuickCaptureHotkey) return
3083 try {
3084 globalShortcut.unregister(registeredQuickCaptureHotkey)
3085 } catch {
3086 // Ignore — Electron throws if the binding wasn't registered cleanly.
3087 }
3088 registeredQuickCaptureHotkey = null
3089}
3090
3091function registerQuickCaptureHotkey(hotkey: string): { ok: boolean; error?: string } {
3092 unregisterQuickCaptureHotkey()

Callers 2

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected