()
| 1086 | } |
| 1087 | |
| 1088 | export 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 | } |
no test coverage detected