Add shortcut for news overlay

This commit is contained in:
Andrei Zavatski 2020-07-16 14:55:02 +03:00
parent 68d2888a8c
commit dac98c8914
2 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,7 @@ public GlobalActionContainer(OsuGameBase game)
new KeyBinding(new[] { InputKey.Control, InputKey.O }, GlobalAction.ToggleSettings),
new KeyBinding(new[] { InputKey.Control, InputKey.D }, GlobalAction.ToggleDirect),
new KeyBinding(new[] { InputKey.Control, InputKey.N }, GlobalAction.ToggleNotifications),
new KeyBinding(new[] { InputKey.Control, InputKey.A }, GlobalAction.ToggleNews),
new KeyBinding(InputKey.Escape, GlobalAction.Back),
new KeyBinding(InputKey.ExtraMouseButton1, GlobalAction.Back),
@ -165,5 +166,8 @@ public enum GlobalAction
[Description("Pause")]
PauseGameplay,
[Description("Toggle news overlay")]
ToggleNews
}
}

View File

@ -872,6 +872,10 @@ public bool OnPressed(GlobalAction action)
dashboard.ToggleVisibility();
return true;
case GlobalAction.ToggleNews:
news.ToggleVisibility();
return true;
case GlobalAction.ResetInputSettings:
var sensitivity = frameworkConfig.GetBindable<double>(FrameworkSetting.CursorSensitivity);