mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
we only need the setTimeout on the first window load. must be some magic caching going on somewhere.
This commit is contained in:
@@ -49,12 +49,13 @@ exports.bindKey = bindKey = (name, shortcut, callback) ->
|
||||
win: null
|
||||
mac: shortcut
|
||||
sender: 'editor'
|
||||
exports.resize = (e) ->
|
||||
exports.resize = (timeout=1) ->
|
||||
setTimeout ->
|
||||
editor.focus()
|
||||
editor.resize()
|
||||
, 1
|
||||
, timeout
|
||||
|
||||
exports.resize(200)
|
||||
|
||||
bindKey 'open', 'Command-O', (env, args, request) ->
|
||||
if file = Chrome.openPanel()
|
||||
|
||||
Reference in New Issue
Block a user