MCPcopy Create free account
hub / github.com/chieapp/chie / setShortcut

Method setShortcut

src/model/assistant.ts:53–63  ·  view source on GitHub ↗
(shortcut: string | null)

Source from the content-addressed store, hash-verified

51 }
52
53 setShortcut(shortcut: string | null) {
54 if (this.shortcut == shortcut)
55 return;
56 if (this.shortcut)
57 gui.globalShortcut.unregister(this.shortcutId);
58 this.shortcut = shortcut;
59 if (shortcut)
60 this.shortcutId = gui.globalShortcut.register(shortcut, this.onActivate.bind(this));
61 else
62 this.shortcutId = null;
63 }
64
65 setTrayIcon(trayIcon: Icon | null) {
66 if (this.trayIcon == trayIcon ||

Callers 3

deserializeMethod · 0.95
destructorMethod · 0.95
#onSubmitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected