From 772a99012dc74c630077cc6bb49fddf7c7ad55f3 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 14 Jun 2013 08:36:57 -0700 Subject: [PATCH] Focus window when atom.focus() is called Previously listeners bound to $(window).focus() would not get events when Atom initially started or on reloads. --- src/app/atom.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/atom.coffee b/src/app/atom.coffee index b3a7e31ed..41038f8c4 100644 --- a/src/app/atom.coffee +++ b/src/app/atom.coffee @@ -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()