mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user