mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	Explicit focus webview on macOS alone.
This commit is contained in:
		@@ -57,6 +57,7 @@ function createMainWindow() {
 | 
				
			|||||||
		icon: iconPath(),
 | 
							icon: iconPath(),
 | 
				
			||||||
		minWidth: 600,
 | 
							minWidth: 600,
 | 
				
			||||||
		minHeight: 500,
 | 
							minHeight: 500,
 | 
				
			||||||
 | 
							titleBarStyle: 'hidden',
 | 
				
			||||||
		webPreferences: {
 | 
							webPreferences: {
 | 
				
			||||||
			plugins: true,
 | 
								plugins: true,
 | 
				
			||||||
			allowDisplayingInsecureContent: true,
 | 
								allowDisplayingInsecureContent: true,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -104,7 +104,7 @@ class WebView extends BaseComponent {
 | 
				
			|||||||
		// The bug is introduced from Electron and this is a tempory fix.
 | 
							// The bug is introduced from Electron and this is a tempory fix.
 | 
				
			||||||
		// See https://github.com/zulip/zulip-electron/issues/216
 | 
							// See https://github.com/zulip/zulip-electron/issues/216
 | 
				
			||||||
		const osName = SystemUtil.getOS();
 | 
							const osName = SystemUtil.getOS();
 | 
				
			||||||
		if (osName === 'Mac' || osName === 'Linux') {
 | 
							if (osName === 'Mac') {
 | 
				
			||||||
			this.$el.focus();
 | 
								this.$el.focus();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user