mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
focus new window, add Chrome.openURL
This commit is contained in:
@@ -12,6 +12,7 @@ Chrome =
|
||||
createWindow: (path) ->
|
||||
c = OSX.AtomWindowController.alloc.initWithWindowNibName "AtomWindow"
|
||||
c.window
|
||||
c.window.makeKeyAndOrderFront null
|
||||
|
||||
# Set the active window's dirty status.
|
||||
setDirty: (bool) ->
|
||||
@@ -44,6 +45,11 @@ Chrome =
|
||||
pb.declareTypes_owner [OSX.NSStringPboardType], null
|
||||
pb.setString_forType text, OSX.NSStringPboardType
|
||||
|
||||
openURL: (url) ->
|
||||
c = OSX.AtomWindowController.alloc.initWithURL url
|
||||
c.window
|
||||
c.window.makeKeyAndOrderFront null
|
||||
|
||||
# name - Command name, like "Find in file"
|
||||
# shortcut - String command name, e.g.
|
||||
# "Command-T"
|
||||
|
||||
Reference in New Issue
Block a user