mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Untested Ctrl+Shift+T shortcut prototype
Added a list to the ChannelManager class that tracks which tabs I closed. Works like a stack, where it adds to the end every time I close a tab. Then added a function that uses this list to open the last closed channel, and added a shortcut inside of ChatOverlay, similar to how jmeng implemented shortcuts. Code is currently untested.
This commit is contained in:
@ -359,15 +359,27 @@ namespace osu.Game.Overlays
|
||||
|
||||
if (e.ControlPressed)
|
||||
{
|
||||
switch (e.Key)
|
||||
if(e.ShiftPressed)
|
||||
{
|
||||
case Key.W:
|
||||
channelManager.LeaveChannel(channelManager.CurrentChannel.Value);
|
||||
return true;
|
||||
switch(e.Key)
|
||||
{
|
||||
case Key.T:
|
||||
channelManager.JoinLastClosedChannel();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (e.Key)
|
||||
{
|
||||
case Key.W:
|
||||
channelManager.LeaveChannel(channelManager.CurrentChannel.Value);
|
||||
return true;
|
||||
|
||||
case Key.T:
|
||||
ChannelTabControl.SelectChannelSelectorTab();
|
||||
return true;
|
||||
case Key.T:
|
||||
ChannelTabControl.SelectChannelSelectorTab();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user