mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Make toggle-dev-tools command work in spec window
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user