Revert "trigger commands from the browser process on the active.element"

This reverts commit f023ce89096b1c7a6faf337cf48d29cfbb296091.
This commit is contained in:
probablycorey
2013-08-19 15:29:27 -07:00
committed by Corey Johnson & Nathan Sobo
parent 0c542d2317
commit dba0998687

View File

@@ -9,7 +9,7 @@ module.exports =
class WindowEventHandler
constructor: ->
@subscribe ipc, 'command', (command, args...) ->
$(document.activeElement).trigger(command, args...)
$(window).trigger(command, args...)
@subscribe $(window), 'focus', -> $("body").removeClass('is-blurred')
@subscribe $(window), 'blur', -> $("body").addClass('is-blurred')