MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / initGlobalHotkeyEventSubscription

Function initGlobalHotkeyEventSubscription

emain/emain-window.ts:1088–1100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1086}
1087
1088export function initGlobalHotkeyEventSubscription() {
1089 waveEventSubscribeSingle({
1090 eventType: "config",
1091 handler: (event) => {
1092 try {
1093 const hotkey = event?.data?.fullconfig?.settings?.["app:globalhotkey"];
1094 registerGlobalHotkey(hotkey ?? null);
1095 } catch (e) {
1096 console.log("error handling config event for globalhotkey", e);
1097 }
1098 },
1099 });
1100}

Callers 1

appMainFunction · 0.90

Calls 2

waveEventSubscribeSingleFunction · 0.90
registerGlobalHotkeyFunction · 0.85

Tested by

no test coverage detected