mirror of
https://github.com/atom/atom.git
synced 2026-02-05 12:15:07 -05:00
Hack to open unstable windows from atom-stable
This commit is contained in:
@@ -25,6 +25,9 @@ atom.receiveMessageFromBrowserProcess = (name, data) ->
|
||||
atom.open = (args...) ->
|
||||
@sendMessageToBrowserProcess('open', args)
|
||||
|
||||
atom.openUnstable = (args...) ->
|
||||
@sendMessageToBrowserProcess('openUnstable', args)
|
||||
|
||||
atom.newWindow = (args...) ->
|
||||
@sendMessageToBrowserProcess('newWindow', args)
|
||||
|
||||
|
||||
@@ -20,11 +20,13 @@ class Keymap
|
||||
'meta-n': 'new-window'
|
||||
'meta-,': 'open-user-configuration'
|
||||
'meta-o': 'open'
|
||||
'meta-O': 'open-unstable'
|
||||
'meta-w': 'core:close'
|
||||
|
||||
$(document).on 'new-window', => atom.newWindow()
|
||||
$(document).on 'open-user-configuration', => atom.open(atom.configFilePath)
|
||||
$(document).on 'open', => atom.open()
|
||||
$(document).on 'open-unstable', => atom.openUnstable()
|
||||
|
||||
bindKeys: (selector, bindings) ->
|
||||
bindingSet = new BindingSet(selector, bindings, @bindingSets.length)
|
||||
|
||||
Reference in New Issue
Block a user