From cebd600e629f145aa8cff9336c5ac1863d860e4b Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Fri, 28 Oct 2011 18:04:35 -0700 Subject: [PATCH] reloading be working. --- src/window.coffee | 2 +- static/key-bindings.coffee | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/window.coffee b/src/window.coffee index acb3f4cbc..e2eba8565 100644 --- a/src/window.coffee +++ b/src/window.coffee @@ -73,7 +73,7 @@ windowAdditions = Event.trigger 'window:open', path close: -> - atomController.close() + atomController.close for key, value of windowAdditions console.warn "DOMWindow already has a key named `#{key}`" if window[key] diff --git a/static/key-bindings.coffee b/static/key-bindings.coffee index 44515e974..d21df22df 100644 --- a/static/key-bindings.coffee +++ b/static/key-bindings.coffee @@ -4,14 +4,15 @@ app: window: 'cmd-shift-i': (window) -> window.showConsole() + 'cmd-w': (window) -> window.close() 'cmd-o': (window) -> window.open() + 'cmd-r': (window) -> window.reload() editor: 'cmd-s': 'save' 'cmd-shift-s': 'saveAs' 'cmd-c': 'copy' 'cmd-x': 'cut' - 'cmd-r': 'eval' 'cmd-/': 'toggleComment' 'cmd-[': 'outdent' 'cmd-]': 'indent'