Call window.close when window receives the 'close' event.

The RootView binds meta-w to the 'close' event.
This commit is contained in:
Nathan Sobo
2012-01-10 19:22:19 -08:00
committed by Corey Johnson & Nathan Sobo
parent 783e9446e9
commit 51736e7695
2 changed files with 7 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ windowAdditions =
$('body').append @rootView
@registerEventHandlers()
@bindMenuItems()
$(this).on 'close', => @close()
$(window).focus()
shutdown: ->