mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
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:
parent
45dce586af
commit
892f8b10fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user