mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Call window.close when window receives the 'close' event.
The RootView binds meta-w to the 'close' event.
This commit is contained in:
committed by
Corey Johnson & Nathan Sobo
parent
783e9446e9
commit
51736e7695
@@ -17,6 +17,7 @@ windowAdditions =
|
||||
$('body').append @rootView
|
||||
@registerEventHandlers()
|
||||
@bindMenuItems()
|
||||
$(this).on 'close', => @close()
|
||||
$(window).focus()
|
||||
|
||||
shutdown: ->
|
||||
|
||||
Reference in New Issue
Block a user