Make cut/copy/paste menu items work

Previously menu item commands were being triggered on `window` they now are triggered on
`document.activeElement`.
This commit is contained in:
probablycorey
2013-09-25 13:57:45 -07:00
parent 9006ab95fc
commit 1e88caac50

View File

@@ -14,7 +14,7 @@ class WindowEventHandler
@reloadRequested = false
@subscribe ipc, 'command', (command, args...) ->
$(window).trigger(command, args...)
$(document.activeElement).trigger(command, args...)
@subscribe ipc, 'context-command', (command, args...) ->
$(atom.contextMenu.activeElement).trigger(command, args...)