From 2daa8d60f4d11f2d88df12415dc42f27eb90e616 Mon Sep 17 00:00:00 2001 From: Sam Hunter Date: Sun, 12 Jun 2016 23:16:26 -0700 Subject: [PATCH] Fix WebView focus This code is needed to automatically focus the webview when it is blurred --- src/main-process/atom-window.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main-process/atom-window.coffee b/src/main-process/atom-window.coffee index b69c417a8..f9db631bb 100644 --- a/src/main-process/atom-window.coffee +++ b/src/main-process/atom-window.coffee @@ -157,6 +157,9 @@ class AtomWindow @setupContextMenu() + @browserWindow.on 'blur', => + @browserWindow.focusOnWebView() + openPath: (pathToOpen, initialLine, initialColumn) -> @openLocations([{pathToOpen, initialLine, initialColumn}])