Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ui/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,14 @@ async function appMain() {
console.error('Error registering launcher hotkey:', e);
}

try {
globalShortcut.register('CommandOrControl+Alt+G', () => {
focusWindow();
});
} catch (e) {
console.error('Error registering focus window hotkey:', e);
}

Comment on lines +1774 to +1781
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question, do we need to add this here, as we already have an accelerator for the focus menu?

session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => {
details.requestHeaders['Origin'] = 'http://localhost:5173';
callback({ cancel: false, requestHeaders: details.requestHeaders });
Expand Down Expand Up @@ -1948,7 +1956,7 @@ async function appMain() {
fileMenu.submenu.append(
new MenuItem({
label: 'Focus Goose Window',
accelerator: 'CmdOrCtrl+Alt+Shift+G',
accelerator: 'CmdOrCtrl+Alt+G',
click() {
focusWindow();
},
Expand Down