toggle fullscreen class for #12377

This commit is contained in:
Benjamin Pasero
2016-09-26 10:53:04 +02:00
parent fafb6c1d3b
commit 7dfe34301a
2 changed files with 22 additions and 0 deletions
+9
View File
@@ -323,6 +323,15 @@ export class VSCodeWindow {
this._lastFocusTime = Date.now();
});
// Window Fullscreen
this._win.on('enter-full-screen', () => {
this.sendWhenReady('vscode:enterFullScreen');
});
this._win.on('leave-full-screen', () => {
this.sendWhenReady('vscode:leaveFullScreen');
});
// Window Failed to load
this._win.webContents.on('did-fail-load', (event: Event, errorCode: string, errorDescription: string) => {
console.warn('[electron event]: fail to load, ', errorDescription);