Fix webview doesn't get focus correctly

For #231

webview.focus() was used to focus on the webview, but it's DOM element function.
So only the tag was focused in the host window, and its webContents was not focused.
As the result, the shortcuts of Mattermost server didn't work in some cases.
Electron is upgraded to 1.2.8 because of webContents.isFocused().
This commit is contained in:
Yuya Ochiai
2016-08-26 00:38:24 +09:00
parent a0453b5865
commit 4d0e263ecd
3 changed files with 15 additions and 6 deletions

View File

@@ -39,7 +39,7 @@
"electron-builder": "5.2.1",
"electron-connect": "^0.4.4",
"electron-packager": "^7.0.1",
"electron-prebuilt": "1.2.7",
"electron-prebuilt": "1.2.8",
"electron-winstaller": "^2.2.0",
"esformatter": "^0.9.6",
"esformatter-jsx": "^7.0.1",