Remove hardcoded DevReloadChrome and HideUserInterface hotkeys.
This commit is contained in:
@@ -239,8 +239,6 @@ namespace OpenRA
|
||||
public Hotkey TogglePixelDoubleKey = new Hotkey(Keycode.PERIOD, Modifiers.None);
|
||||
public Hotkey TogglePlayerStanceColorsKey = new Hotkey(Keycode.COMMA, Modifiers.Ctrl);
|
||||
|
||||
public Hotkey DevReloadChromeKey = new Hotkey(Keycode.C, Modifiers.Ctrl | Modifiers.Shift);
|
||||
public Hotkey HideUserInterfaceKey = new Hotkey(Keycode.H, Modifiers.Ctrl | Modifiers.Shift);
|
||||
public Hotkey TakeScreenshotKey = new Hotkey(Keycode.P, Modifiers.Ctrl);
|
||||
public Hotkey ToggleMuteKey = new Hotkey(Keycode.M, Modifiers.None);
|
||||
|
||||
|
||||
@@ -128,23 +128,6 @@ namespace OpenRA.Widgets
|
||||
/// <param name="e">Key input data</param>
|
||||
public static bool HandleKeyPress(KeyInput e)
|
||||
{
|
||||
if (e.Event == KeyInputEvent.Down)
|
||||
{
|
||||
var hk = Hotkey.FromKeyInput(e);
|
||||
|
||||
if (hk == Game.Settings.Keys.DevReloadChromeKey)
|
||||
{
|
||||
ChromeProvider.Initialize(Game.ModData);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (hk == Game.Settings.Keys.HideUserInterfaceKey)
|
||||
{
|
||||
Root.Visible ^= true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (KeyboardFocusWidget != null)
|
||||
return KeyboardFocusWidget.HandleKeyPressOuter(e);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user