Remove hardcoded DevReloadChrome and HideUserInterface hotkeys.

This commit is contained in:
Paul Chote
2017-09-03 15:15:06 +00:00
committed by reaperrr
parent 25e88008ef
commit 983f9c4cde
3 changed files with 2 additions and 37 deletions

View File

@@ -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);