Fix #5587: added B_CLOSE_ON_ESCAPE on team monitor window and a close shortcut for Command+W.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36404 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2010-04-21 19:32:19 +00:00
parent 63fe660c1b
commit 17c5e0648d
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,8 @@ static const uint32 kMsgRebootTick = 'TMrt';
TeamMonitorWindow::TeamMonitorWindow()
: BWindow(BRect(0, 0, 350, 300), "Team Monitor",
B_TITLED_WINDOW_LOOK, B_MODAL_ALL_WINDOW_FEEL,
B_NOT_MINIMIZABLE | B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS,
B_NOT_MINIMIZABLE | B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS
| B_CLOSE_ON_ESCAPE,
B_ALL_WORKSPACES),
fQuitting(false),
fUpdateRunner(NULL)
@ -144,6 +145,7 @@ TeamMonitorWindow::TeamMonitorWindow()
AddShortcut('T', B_COMMAND_KEY | B_OPTION_KEY,
new BMessage(kMsgLaunchTerminal));
AddShortcut('W', B_COMMAND_KEY, new BMessage(B_QUIT_REQUESTED));
}