mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
Fix keyboard shortcut conflict for Focus Goose Window (#5809)
Co-authored-by: Swiggy Swigut <swiggy@squareup.com>
This commit is contained in:
@@ -1865,6 +1865,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);
|
||||
}
|
||||
|
||||
session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => {
|
||||
details.requestHeaders['Origin'] = 'http://localhost:5173';
|
||||
callback({ cancel: false, requestHeaders: details.requestHeaders });
|
||||
@@ -2041,7 +2049,7 @@ async function appMain() {
|
||||
fileMenu.submenu.append(
|
||||
new MenuItem({
|
||||
label: 'Focus Goose Window',
|
||||
accelerator: 'CmdOrCtrl+Alt+Shift+G',
|
||||
accelerator: 'CmdOrCtrl+Alt+G',
|
||||
click() {
|
||||
focusWindow();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user