This commit is contained in:
Corey Johnson
2012-03-30 09:41:28 -07:00
parent ed2a102c85
commit 629517af9e

View File

@@ -17,16 +17,12 @@ class Keymap
'meta-,': 'open-user-configuration'
'meta-o': 'open'
@_newWindow = => $native.newWindow()
@_openUserConfiguration = => atom.open(atom.userConfigurationPath)
@_open = =>
$(document).on 'new-window', => $native.newWindow()
$(document).on 'open-user-configuration', => atom.open(atom.userConfigurationPath)
$(document).on 'open', =>
url = $native.openDialog()
atom.open(url) if url
$(document).on 'new-window', @_newWindow
$(document).on 'open-user-configuration', @_openUserConfiguration
$(document).on 'open', @_open
unbindDefaultKeys: ->
$(document).unbind 'new-window', @_newWindow
$(document).unbind 'open', @_open