mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Revert "trigger commands from the browser process on the active.element"
This reverts commit f023ce89096b1c7a6faf337cf48d29cfbb296091.
This commit is contained in:
committed by
Corey Johnson & Nathan Sobo
parent
0c542d2317
commit
dba0998687
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user