Display console with cmd-ctrl-k. how do you close the console? You can't yet.

http://www.opensource.apple.com/source/WebKit/WebKit-6531.9/mac/WebInspector/
This commit is contained in:
Corey Johnson
2011-08-29 15:57:13 -07:00
parent 57ac833533
commit 27759ac812
2 changed files with 7 additions and 0 deletions

View File

@@ -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)

View File

@@ -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