From 629517af9eaf79dcc25b3f147b51c19cd081b7ed Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Fri, 30 Mar 2012 09:41:28 -0700 Subject: [PATCH] :lipstick: --- src/atom/keymap.coffee | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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