Fix cursor interaction with widgets
This commit is contained in:
@@ -69,7 +69,6 @@ namespace OpenRA
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public bool HandleKeyPress(KeyInput e)
|
||||
{
|
||||
if (Widget.SelectedWidget != null)
|
||||
@@ -79,13 +78,5 @@ namespace OpenRA
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool HitTest(int2 mousePos)
|
||||
{
|
||||
if (Widget.SelectedWidget != null)
|
||||
return true;
|
||||
|
||||
return rootWidget.HitTest(mousePos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user