From 1ad1713ad2a4dddf7390d5bc77ab665b94773591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 3 Jun 2007 08:18:34 +0000 Subject: [PATCH] =?UTF-8?q?*=20applied=20patch=20by=20Jonas=20Sundstr?= =?UTF-8?q?=C3=B6m,=20=20=20makes=20the=20Escape=20key=20cancel=20the=20re?= =?UTF-8?q?start/shutdown=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21303 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/registrar/ShutdownProcess.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/servers/registrar/ShutdownProcess.cpp b/src/servers/registrar/ShutdownProcess.cpp index 950acc7125..19837f38b5 100644 --- a/src/servers/registrar/ShutdownProcess.cpp +++ b/src/servers/registrar/ShutdownProcess.cpp @@ -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)