
|
[haiku-development]
||
[Date Prev]
[06-2007 Date Index]
[Date Next]
||
[Thread Prev]
[06-2007 Thread Index]
[Thread Next]
[haiku-development] Esc => Cancel in restart/shutdown dialog
- From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Sun, 03 Jun 2007 00:04:51 +0200 CEST
A patch to make the Escape key cancel the restart/shutdown dialog.
/Jonas.
Index: src/servers/registrar/ShutdownProcess.cpp
===================================================================
--- src/servers/registrar/ShutdownProcess.cpp (revision 21297)
+++ src/servers/registrar/ShutdownProcess.cpp (working copy)
@@ -1232,6 +1232,7 @@
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)
|

|