Skip to content

Commit

Permalink
remove fullscreen mode keyboard shortcut (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanoliver authored Aug 2, 2023
1 parent 06ddf43 commit c0d5ac8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ Yes and no:
- Resize the window by clicking and dragging.
- Use `Cmd+1/2/3/A/+/-` or drag to resize the internal webviews.
- `Cmd +` and `Cmd -` are especially useful if you have a lot of chats enabled!
- Use `Cmd+Shift+F` to set the width to 100% of your screen.

- **Model Toggle**:

Expand Down
26 changes: 1 addition & 25 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ if (process.env.NODE_ENV === 'development') {
}
log.info('store reset', store); // Logging the store

// Initialize fullscreen toggle
store.set('isFullscreen', false);

// Context menu for electron apps
const contextMenu = require('electron-context-menu');

Expand Down Expand Up @@ -89,7 +86,7 @@ app.on('ready', () => {
enableWebView: true, // from chatgpt
// nativeWindowOpen: true,
},
width: store.get('isFullscreen', false) ? width : 1200,
width: 1200,
height: 750,
},
tray,
Expand Down Expand Up @@ -176,15 +173,6 @@ app.on('ready', () => {
});
},
},
{
label: 'Toggle Fullscreen',
accelerator: 'CommandorControl+Shift+F',
type: 'checkbox',
checked: store.get('isFullscreen', false),
click: () => {
store.set('isFullscreen', !store.get('isFullscreen', false));
},
},
];

const separator = { type: 'separator' };
Expand Down Expand Up @@ -304,18 +292,6 @@ app.on('ready', () => {
}
});

store.onDidChange('isFullscreen', (isFullscreen) => {
const { window } = mb;
if (isFullscreen) {
window.setBounds({ x: 0, width: width, height: window.getSize()[1] });
} else {
window.setBounds({
x: width - 1200,
width: 1200,
height: window.getSize()[1],
});
}
});
Menu.setApplicationMenu(menu, { autoHideMenuBar: false });

// open devtools if in dev mode
Expand Down

0 comments on commit c0d5ac8

Please sign in to comment.