Use atom.getCurrentWindow()

This commit is contained in:
Nathan Sobo 2015-07-07 20:19:22 -05:00
parent 4091fa9e78
commit a13e002079

View File

@ -121,8 +121,7 @@ class WindowEventHandler
bindCommandToAction = (command, action) =>
@subscribe $(document), command, (event) ->
if event.target.webkitMatchesSelector('.native-key-bindings')
webContents = require('remote').getCurrentWindow().webContents
webContents[action]()
atom.getCurrentWindow().webContents[action]()
true
bindCommandToAction('core:copy', 'copy')