meta-alt-i toggles docked dev tools

This commit is contained in:
Corey Johnson
2012-06-26 15:02:47 -07:00
parent b8ed28ba6a
commit a364fff7e6
9 changed files with 153 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
window.keymap.bindKeys '*'
'meta-w': 'close'
'alt-meta-i': 'show-console'
'alt-meta-i': 'toggle-dev-tools'
right: 'move-right'
left: 'move-left'
down: 'move-down'

View File

@@ -46,7 +46,7 @@ class RootView extends View
extensionStates: @serializeExtensions()
handleEvents: ->
@on 'show-console', => window.showConsole()
@on 'toggle-dev-tools', => window.toggleDevTools()
@on 'focus', (e) =>
if @activeEditor()
@activeEditor().focus()

View File

@@ -68,8 +68,8 @@ windowAdditions =
else
Native.reload()
showConsole: ->
$native.showDevTools()
toggleDevTools: ->
$native.toggleDevTools()
onerror: ->
@showConsole()