Focus window when atom.focus() is called

Previously listeners bound to $(window).focus() would not get
events when Atom initially started or on reloads.
This commit is contained in:
Kevin Sawicki
2013-06-14 08:36:57 -07:00
parent f408406ef0
commit 772a99012d

View File

@@ -1,4 +1,5 @@
fsUtils = require 'fs-utils'
$ = require 'jquery'
_ = require 'underscore'
Package = require 'package'
Theme = require 'theme'
@@ -204,6 +205,7 @@ window.atom =
focus: ->
remote.getCurrentWindow().focus()
$(window).focus()
show: ->
remote.getCurrentWindow().show()