Fix WebView focus

This code is needed to automatically focus the webview when it is blurred
This commit is contained in:
Sam Hunter
2016-06-12 23:16:26 -07:00
parent 0f673ea884
commit 2daa8d60f4

View File

@@ -157,6 +157,9 @@ class AtomWindow
@setupContextMenu()
@browserWindow.on 'blur', =>
@browserWindow.focusOnWebView()
openPath: (pathToOpen, initialLine, initialColumn) ->
@openLocations([{pathToOpen, initialLine, initialColumn}])