Skip to content

Commit

Permalink
Focus yielding is not necessary at widget removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
deniz1a committed Jun 23, 2015
1 parent 61e53e9 commit 84e32e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions OpenRA.Game/Widgets/Widget.cs
Expand Up @@ -498,9 +498,8 @@ public virtual void RemoveChildren()

public virtual void Removed()
{
// Using the forced versions because the widgets
// Using the forced version because the widgets
// have been removed
ForceYieldKeyboardFocus();
ForceYieldMouseFocus();

foreach (var c in Children.OfType<Widget>().Reverse())
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Widgets/TextFieldWidget.cs
Expand Up @@ -222,7 +222,7 @@ public override bool HandleTextInput(string text)
bool wasDisabled;
public override void Tick()
{
// Remove the blicking cursor when disabled
// Remove the blinking cursor when disabled
var isDisabled = IsDisabled();
if (isDisabled != wasDisabled)
{
Expand Down

0 comments on commit 84e32e0

Please sign in to comment.