Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

refactor: update ShortcutBinding import path in main and preload scripts

Yauheni Bandziukevichf1a855204645
diff --git a/electron/main.ts b/electron/main.ts
index cdddc7068..94cf6bd21 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -11,10 +11,10 @@ import {
systemPreferences,
Tray,
} from "electron";
+import { ShortcutBinding } from "../src/lib/shortcuts";
import {
loadAndRegisterGlobalShortcut,
registerOpenAppShortcut,
- ShortcutBinding,
unregisterAllGlobalShortcuts,
} from "./globalShortcut";
import { mainT, setMainLocale } from "./i18n";
diff --git a/electron/preload.ts b/electron/preload.ts
index c118b7404..e594c50d6 100644
--- a/electron/preload.ts
+++ b/electron/preload.ts
@@ -2,8 +2,8 @@ import { contextBridge, ipcRenderer } from "electron";
import type { NativeMacRecordingRequest } from "../src/lib/nativeMacRecording";
import type { NativeWindowsRecordingRequest } from "../src/lib/nativeWindowsRecording";
import type { RecordingSession, StoreRecordedSessionInput } from "../src/lib/recordingSession";
+import type { ShortcutBinding } from "../src/lib/shortcuts";
import { NATIVE_BRIDGE_CHANNEL, type NativeBridgeRequest } from "../src/native/contracts";
-import type { ShortcutBinding } from "./globalShortcut";
// Asset base URL is passed from the main process via webPreferences.additionalArguments
// (see windows.ts). Sandboxed preloads cannot import node:path / node:url, so we