I've created a OS X (not iOS) applicaiton loosely based on http://practicalswift.com/2014/06/27/a-minimal-webkit-browser-in-30-lines-of-swift/.
As Takeshi says down in the comments, it would like to nice too allow the window to close with Command-W.
I came across this Objective-C recommandation from 2010 but it doesn't seem to apply: http://www.cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html
What is needed to allow the popup window to close with Command-W? In Swift of course.
Thanks.
Ed