Window close shortcut

Hey there Jules:

A minor suggestion - in DocumentWindow::lookAndFeelChanged(), you’ve got this:

[code]#ifdef JUCE_WIN32
if (getCloseButton() != 0)
getCloseButton()->addShortcut (KeyPress (KeyPress::F4Key, ModifierKeys::altModifier));

How about adding the Mac equivalent?

[code]#ifdef JUCE_MAC
if (getCloseButton() != 0)
getCloseButton()->addShortcut (KeyPress (‘w’, ModifierKeys::commandModifier));


I already added it to my app, but I can’t see any reason not to put it in the library.


yes - good idea! The alt-f4 should probably also be defined for linux too.