Added shortcut 'h' to the Switcher to hide applications.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22303 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -984,6 +984,22 @@ TSwitchManager::QuitApp()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
TSwitchManager::HideApp()
|
||||||
|
{
|
||||||
|
// hide all teams in this group
|
||||||
|
|
||||||
|
TTeamGroup *teamGroup = (TTeamGroup *)fGroupList.ItemAt(fCurrentIndex);
|
||||||
|
|
||||||
|
for (int32 i = teamGroup->TeamList()->CountItems(); i-- > 0;) {
|
||||||
|
team_id team = (team_id)teamGroup->TeamList()->ItemAt(i);
|
||||||
|
app_info info;
|
||||||
|
if (be_roster->GetRunningAppInfo(team, &info) == B_OK)
|
||||||
|
do_minimize_team(BRect(), team, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
window_info *
|
window_info *
|
||||||
TSwitchManager::WindowInfo(int32 groupIndex, int32 windowIndex)
|
TSwitchManager::WindowInfo(int32 groupIndex, int32 windowIndex)
|
||||||
{
|
{
|
||||||
@@ -1587,6 +1603,11 @@ TSwitcherWindow::DoKey(uint32 key, uint32 modifiers)
|
|||||||
fManager->QuitApp();
|
fManager->QuitApp();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'h':
|
||||||
|
case 'H':
|
||||||
|
fManager->HideApp();
|
||||||
|
break;
|
||||||
|
|
||||||
#if _ALLOW_STICKY_
|
#if _ALLOW_STICKY_
|
||||||
case 's':
|
case 's':
|
||||||
case 'S':
|
case 'S':
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ class TSwitchManager : public BHandler {
|
|||||||
int32 CountVisibleGroups();
|
int32 CountVisibleGroups();
|
||||||
|
|
||||||
void QuitApp();
|
void QuitApp();
|
||||||
|
void HideApp();
|
||||||
void CycleApp(bool forward, bool activate = false);
|
void CycleApp(bool forward, bool activate = false);
|
||||||
void CycleWindow(bool forward, bool wrap = true);
|
void CycleWindow(bool forward, bool wrap = true);
|
||||||
void SwitchToApp(int32 prevIndex, int32 newIndex, bool forward);
|
void SwitchToApp(int32 prevIndex, int32 newIndex, bool forward);
|
||||||
|
|||||||
Reference in New Issue
Block a user