* 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:
@@ -1232,6 +1232,7 @@ ShutdownProcess::_WorkerDoShutdown()
|
|||||||
const char *buttonText = (fReboot ? "Restart" : "Shut Down");
|
const char *buttonText = (fReboot ? "Restart" : "Shut Down");
|
||||||
BAlert *alert = new BAlert(title, text, "Cancel", buttonText, NULL,
|
BAlert *alert = new BAlert(title, text, "Cancel", buttonText, NULL,
|
||||||
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
||||||
|
alert->SetShortcut(0, B_ESCAPE);
|
||||||
int32 result = alert->Go();
|
int32 result = alert->Go();
|
||||||
|
|
||||||
if (result != 1)
|
if (result != 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user