mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 05:23:17 +00:00
Add an os check for webview focus events.
This commit is contained in:
@@ -100,7 +100,13 @@ class WebView extends BaseComponent {
|
||||
}
|
||||
|
||||
focus() {
|
||||
this.$el.focus();
|
||||
// Explicit focusing the webview causes a bug the input cannot regain focus on Winodws.
|
||||
// The bug is introduced from Electron and this is a tempory fix.
|
||||
// See https://github.com/zulip/zulip-electron/issues/216
|
||||
const osName = SystemUtil.getOS();
|
||||
if (osName === 'Mac' || osName === 'Linux') {
|
||||
this.$el.focus();
|
||||
}
|
||||
}
|
||||
|
||||
hide() {
|
||||
|
||||
Reference in New Issue
Block a user