mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Fix WebView focus
This code is needed to automatically focus the webview when it is blurred
This commit is contained in:
@@ -157,6 +157,9 @@ class AtomWindow
|
||||
|
||||
@setupContextMenu()
|
||||
|
||||
@browserWindow.on 'blur', =>
|
||||
@browserWindow.focusOnWebView()
|
||||
|
||||
openPath: (pathToOpen, initialLine, initialColumn) ->
|
||||
@openLocations([{pathToOpen, initialLine, initialColumn}])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user