mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Don't always show console, but bind a key for it and show when profiling
This commit is contained in:
@@ -5,15 +5,18 @@ Keymap = require 'keymap'
|
||||
Point = require 'point'
|
||||
|
||||
require 'window'
|
||||
window.showConsole()
|
||||
|
||||
keymap = new Keymap
|
||||
keymap.bindDefaultKeys()
|
||||
$(window).on 'keydown', (e) -> keymap.handleKeyEvent(e)
|
||||
keymap.bindKeys '*', 'meta-w': 'close'
|
||||
keymap.bindKeys '*',
|
||||
'meta-w': 'close'
|
||||
'alt-meta-i': 'show-console'
|
||||
$(document).on 'close', -> window.close()
|
||||
$(document).on 'show-console', -> window.showConsole()
|
||||
|
||||
window.profile = (description, fn) ->
|
||||
window.showConsole()
|
||||
window.benchmark(description, fn, true)
|
||||
|
||||
window.pbenchmark = window.profile
|
||||
|
||||
Reference in New Issue
Block a user