Only spec window's web view should force focus

This commit is contained in:
Sam Hunter
2016-06-12 23:20:43 -07:00
parent 2daa8d60f4
commit 2d68c49274

View File

@@ -157,8 +157,10 @@ class AtomWindow
@setupContextMenu()
@browserWindow.on 'blur', =>
@browserWindow.focusOnWebView()
if @isSpec
# Spec window's web view should always have focus
@browserWindow.on 'blur', =>
@browserWindow.focusOnWebView()
openPath: (pathToOpen, initialLine, initialColumn) ->
@openLocations([{pathToOpen, initialLine, initialColumn}])