mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 02:32:59 +08:00
Add shortcut for news overlay
This commit is contained in:
parent
68d2888a8c
commit
dac98c8914
@ -36,6 +36,7 @@ namespace osu.Game.Input.Bindings
|
||||
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 @@ namespace osu.Game.Input.Bindings
|
||||
|
||||
[Description("Pause")]
|
||||
PauseGameplay,
|
||||
|
||||
[Description("Toggle news overlay")]
|
||||
ToggleNews
|
||||
}
|
||||
}
|
||||
|
@ -872,6 +872,10 @@ namespace osu.Game
|
||||
dashboard.ToggleVisibility();
|
||||
return true;
|
||||
|
||||
case GlobalAction.ToggleNews:
|
||||
news.ToggleVisibility();
|
||||
return true;
|
||||
|
||||
case GlobalAction.ResetInputSettings:
|
||||
var sensitivity = frameworkConfig.GetBindable<double>(FrameworkSetting.CursorSensitivity);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user