Make meta-n (new window) work

This commit is contained in:
Corey Johnson
2012-08-28 17:04:56 -07:00
parent fad214d6d9
commit fa4650343b
5 changed files with 12 additions and 1 deletions

View File

@@ -3,3 +3,4 @@ fs = require('fs')
atom.configDirPath = fs.absolute("~/.atom")
atom.configFilePath = fs.join(atom.configDirPath, "atom.coffee")
atom.open = (args...) -> @sendMessageToBrowserProcess('open', args)
atom.newWindow = (args...) -> @sendMessageToBrowserProcess('newWindow', args)

View File

@@ -19,7 +19,7 @@ class Keymap
'meta-,': 'open-user-configuration'
'meta-o': 'open'
$(document).on 'new-window', => $native.newWindow()
$(document).on 'new-window', => atom.newWindow()
$(document).on 'open-user-configuration', => atom.open(atom.configFilePath)
$(document).on 'open', => atom.open()