mirror of
https://github.com/atom/atom.git
synced 2026-02-15 17:15:24 -05:00
Meta-w closes spec windows again.
This adds a 'core:close' event to meta-w in the default bindings, and modifies window to listen for it.
This commit is contained in:
@@ -24,6 +24,7 @@ windowAdditions =
|
||||
TextMateBundle.loadAll()
|
||||
TextMateTheme.loadAll()
|
||||
@setUpKeymap()
|
||||
$(window).on 'core:close', => @close()
|
||||
|
||||
# This method is intended only to be run when starting a normal application
|
||||
# Note: RootView assigns itself on window on initialization so that
|
||||
@@ -34,7 +35,6 @@ windowAdditions =
|
||||
else
|
||||
new RootView(pathToOpen)
|
||||
|
||||
$(window).on 'close', => @close()
|
||||
$(@rootViewParentSelector).append(@rootView)
|
||||
$(window).focus()
|
||||
$(window).on 'beforeunload', =>
|
||||
|
||||
Reference in New Issue
Block a user