* Added shortcut Command+Shift+T to open a Terminal. For compatiblity with BeOS :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28289 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -55,6 +55,7 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
static const uint32 kMsgUpdate = 'TMup';
|
static const uint32 kMsgUpdate = 'TMup';
|
||||||
|
static const uint32 kMsgLaunchTerminal = 'TMlt';
|
||||||
const uint32 TM_CANCEL = 'TMca';
|
const uint32 TM_CANCEL = 'TMca';
|
||||||
const uint32 TM_FORCE_REBOOT = 'TMfr';
|
const uint32 TM_FORCE_REBOOT = 'TMfr';
|
||||||
const uint32 TM_KILL_APPLICATION = 'TMka';
|
const uint32 TM_KILL_APPLICATION = 'TMka';
|
||||||
@@ -140,6 +141,9 @@ TeamMonitorWindow::TeamMonitorWindow()
|
|||||||
|
|
||||||
SetSizeLimits(Bounds().Width(), Bounds().Width() * 2,
|
SetSizeLimits(Bounds().Width(), Bounds().Width() * 2,
|
||||||
Bounds().Height(), screenFrame.Height());
|
Bounds().Height(), screenFrame.Height());
|
||||||
|
|
||||||
|
AddShortcut('T', B_COMMAND_KEY | B_SHIFT_KEY,
|
||||||
|
new BMessage(kMsgLaunchTerminal));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -168,6 +172,10 @@ TeamMonitorWindow::MessageReceived(BMessage *msg)
|
|||||||
fDescriptionView->CtrlAltDelPressed(keyDown);
|
fDescriptionView->CtrlAltDelPressed(keyDown);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case kMsgLaunchTerminal:
|
||||||
|
be_roster->Launch("application/x-vnd.Haiku-Terminal");
|
||||||
|
break;
|
||||||
|
|
||||||
case TM_FORCE_REBOOT:
|
case TM_FORCE_REBOOT:
|
||||||
_kern_shutdown(true);
|
_kern_shutdown(true);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user