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:
@@ -68,7 +68,8 @@ static const uint32 kMsgRebootTick = 'TMrt';
|
|||||||
TeamMonitorWindow::TeamMonitorWindow()
|
TeamMonitorWindow::TeamMonitorWindow()
|
||||||
: BWindow(BRect(0, 0, 350, 300), "Team Monitor",
|
: BWindow(BRect(0, 0, 350, 300), "Team Monitor",
|
||||||
B_TITLED_WINDOW_LOOK, B_MODAL_ALL_WINDOW_FEEL,
|
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),
|
B_ALL_WORKSPACES),
|
||||||
fQuitting(false),
|
fQuitting(false),
|
||||||
fUpdateRunner(NULL)
|
fUpdateRunner(NULL)
|
||||||
@@ -144,6 +145,7 @@ TeamMonitorWindow::TeamMonitorWindow()
|
|||||||
|
|
||||||
AddShortcut('T', B_COMMAND_KEY | B_OPTION_KEY,
|
AddShortcut('T', B_COMMAND_KEY | B_OPTION_KEY,
|
||||||
new BMessage(kMsgLaunchTerminal));
|
new BMessage(kMsgLaunchTerminal));
|
||||||
|
AddShortcut('W', B_COMMAND_KEY, new BMessage(B_QUIT_REQUESTED));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user