diff --git a/src/atom/keymap.coffee b/src/atom/keymap.coffee index a8583da62..3ef354b3d 100644 --- a/src/atom/keymap.coffee +++ b/src/atom/keymap.coffee @@ -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