aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
authorLibravatar Ajesh Kumar S <31558237+AjeshKumarS@users.noreply.github.com>2021-10-25 21:58:29 +0530
committerLibravatar GitHub <noreply@github.com>2021-10-25 21:58:29 +0530
commit5c85033140094daff85f0c32f83f94440353479f (patch)
tree2e7cda7ee92dc3ed278c84fd66fa3d5937a37432 /src/index.ts
parentdocs: add AjeshKumarS as a contributor for code (#2127) [skip ci] (diff)
downloadferdium-app-5c85033140094daff85f0c32f83f94440353479f.tar.gz
ferdium-app-5c85033140094daff85f0c32f83f94440353479f.tar.zst
ferdium-app-5c85033140094daff85f0c32f83f94440353479f.zip
Add feature to resize and fit window to screen on macOS when double c… (#2125)
Co-authored-by: Sreelekha sreelekha.marasigogu@gmail.com
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
index b4a754289..89903a669 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -627,6 +627,10 @@ ipcMain.on('set-spellchecker-locales', (_e, { locale, serviceId }) => {
627 serviceSession.setSpellCheckerLanguages(locales); 627 serviceSession.setSpellCheckerLanguages(locales);
628}); 628});
629 629
630ipcMain.on('window.toolbar-double-clicked', () => {
631 mainWindow?.isMaximized() ? mainWindow.unmaximize() : mainWindow?.maximize();
632});
633
630// Quit when all windows are closed. 634// Quit when all windows are closed.
631app.on('window-all-closed', () => { 635app.on('window-all-closed', () => {
632 // On OS X it is common for applications and their menu bar 636 // On OS X it is common for applications and their menu bar