Window close shortcut


#1

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));

[/code]

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

Matt


#2

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


#3