mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 14:23:20 +08:00
Merge pull request #3 from angelaz1/jmeng1/keyboard_shortcuts
Added ctrl + w and ctrl + t keyboard shortcuts
This commit is contained in:
commit
aaca703483
@ -96,6 +96,11 @@ namespace osu.Game.Overlays.Chat.Tabs
|
|||||||
selectorTab.Active.Value = false;
|
selectorTab.Active.Value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SelectChannelSelectorTab()
|
||||||
|
{
|
||||||
|
SelectTab(selectorTab);
|
||||||
|
}
|
||||||
|
|
||||||
protected override TabFillFlowContainer CreateTabFlow() => new ChannelTabFillFlowContainer
|
protected override TabFillFlowContainer CreateTabFlow() => new ChannelTabFillFlowContainer
|
||||||
{
|
{
|
||||||
Direction = FillDirection.Full,
|
Direction = FillDirection.Full,
|
||||||
|
@ -357,6 +357,20 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.ControlPressed)
|
||||||
|
{
|
||||||
|
switch (e.Key)
|
||||||
|
{
|
||||||
|
case Key.W:
|
||||||
|
channelManager.LeaveChannel(channelManager.CurrentChannel.Value);
|
||||||
|
return true;
|
||||||
|
|
||||||
|
case Key.T:
|
||||||
|
ChannelTabControl.SelectChannelSelectorTab();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return base.OnKeyDown(e);
|
return base.OnKeyDown(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user