mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user