diff --git a/src/editor.coffee b/src/editor.coffee index c3052efd3..cb7c30b11 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -126,3 +126,6 @@ bindKey 'end', 'Alt-Shift-.', (env) -> bindKey 'fullscreen', 'Command-Shift-Return', (env) -> Chrome.toggleFullscreen() + +bindKey 'console', 'Command-Ctrl-k', (env) -> + Chrome.inspector().showConsole(1) diff --git a/src/osx.coffee b/src/osx.coffee index 0b0177c30..a815da277 100644 --- a/src/osx.coffee +++ b/src/osx.coffee @@ -26,6 +26,10 @@ Chrome = throw "I DON'T KNOW HOW TO DEAL WITH #{position}" # path - Optional. The String path to the file to base it on. + inspector: (webView) -> + webView ?= WindowController.webView + @_inspector ?= OSX.WebInspector.alloc.initWithWebView webView + createWindow: (path) -> c = OSX.AtomWindowController.alloc.initWithWindowNibName "AtomWindow" c.window