* applied patch by Jonas Sundström,

makes the Escape key cancel the restart/shutdown dialog


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21303 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2007-06-03 08:18:34 +00:00
parent 0d9c65d558
commit 1ad1713ad2
@@ -1232,6 +1232,7 @@ ShutdownProcess::_WorkerDoShutdown()
const char *buttonText = (fReboot ? "Restart" : "Shut Down");
BAlert *alert = new BAlert(title, text, "Cancel", buttonText, NULL,
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
alert->SetShortcut(0, B_ESCAPE);
int32 result = alert->Go();
if (result != 1)