Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Fix rename window focus
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed May 19, 2020
1 parent e9487fa commit 3c85113
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/SylphyHorn/UI/RenameWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public RenameWindow(Rect area)
this.PreviewKeyDown += new KeyEventHandler(PreviewKeyDownHandler);
this.Closed += new EventHandler(ClosedHandler);
this.Activated += new EventHandler(ActivatedHandler);

this.Activate();
this.NameBox.Focus();
}

protected override void OnSourceInitialized(EventArgs e)
Expand Down Expand Up @@ -75,6 +72,7 @@ protected override void OnSourceInitialized(EventArgs e)
this.Top = (area.Top + (area.Height - height) / 2) / dpi.ScaleY;
break;
}
this.Activate();
}

private void ActivatedHandler(object sender, EventArgs e)
Expand Down

0 comments on commit 3c85113

Please sign in to comment.