Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.
This commit is contained in:
Humdinger
2012-08-05 19:32:46 +02:00
parent 4e7e3e331d
commit aed3510485
180 changed files with 761 additions and 351 deletions
+1
View File
@@ -649,6 +649,7 @@ BApplication::AboutRequested()
thread_info info;
if (get_thread_info(Thread(), &info) == B_OK) {
BAlert *alert = new BAlert("_about_", info.name, "OK");
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
alert->Go(NULL);
}
}