Changes for future deployment

To-be-deployed (as of Tuesday, Feb 25, 2025) changes.

Snapshot key shortcut changed to CommandOrControl+S, and snapshots only occur when the app is in focus. 

AGAIN, to be deployed
This commit is contained in:
Anirudh Sevugan 2025-02-25 19:22:42 +05:30 committed by GitHub
parent 45dce586af
commit 892f8b10fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,7 +149,15 @@ const setupShortcuts = () => {
}); });
}); });
globalShortcut.register('CommandOrControl+Shift+S', takeSnapshot); globalShortcut.register('CommandOrControl+S', () => {
const focusedWindow = BrowserWindow.getFocusedWindow(); // Get the currently focused window
if (!focusedWindow) return; // Do nothing if no window is focused
takeSnapshot
});
// globalShortcut.register('CommandOrControl+Shift+S', takeSnapshot);
}; };
// App lifecycle management // App lifecycle management