Make toggle-dev-tools command work in spec window

This commit is contained in:
Corey Johnson & Nathan Sobo
2013-02-20 09:58:00 -08:00
parent d9eba58698
commit cb1e48bfef
3 changed files with 2 additions and 4 deletions

View File

@@ -66,8 +66,7 @@ afterEach ->
# window.keymap.bindKeys '*', 'meta-w': 'close'
$(document).on 'close', -> window.close()
$(document).on 'toggle-dev-tools', (e) ->
atom.toggleDevTools() if $('#root-view').length is 0
$(window).on 'toggle-dev-tools', (e) -> atom.toggleDevTools()
$('html,body').css('overflow', 'auto')
jasmine.getEnv().addEqualityTester(_.isEqual) # Use underscore's definition of equality for toEqual assertions

View File

@@ -22,6 +22,7 @@ class Keymap
'meta-o': 'open'
'meta-O': 'open-unstable'
'meta-w': 'core:close'
'alt-meta-i': 'toggle-dev-tools'
$(document).command 'new-window', => atom.newWindow()
$(document).command 'open-user-configuration', => atom.open(config.configDirPath)

View File

@@ -30,8 +30,6 @@
'ctrl-tab': 'window:focus-next-pane'
'ctrl-meta-f': 'window:toggle-full-screen'
'alt-meta-i': 'toggle-dev-tools'
'.tool-panel':
'meta-escape': 'tool-panel:unfocus'
'escape': 'core:close'