This commit is contained in:
SuuperW 2025-07-29 01:54:54 -05:00 committed by GitHub
commit c255073a3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -1181,6 +1181,7 @@ namespace BizHawk.Client.EmuHawk
this.MinimumSize = new System.Drawing.Size(200, 148);
this.Name = "TAStudio";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Activated += new System.EventHandler(this.TAStudio_Activated);
this.Deactivate += new System.EventHandler(this.TAStudio_Deactivate);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Tastudio_Closing);
this.Load += new System.EventHandler(this.Tastudio_Load);

View File

@ -972,6 +972,13 @@ namespace BizHawk.Client.EmuHawk
toolTip1.SetToolTip(TasView, null);
}
private void TAStudio_Activated(object sender, EventArgs e)
{
// The copy/paste shortcut keys are handled by the right-click context menu, not EmuHawk hotkeys.
// So they will only work if TasView is focused.
TasView.Select();
}
private void TAStudio_Deactivate(object sender, EventArgs e)
{
if (_leftButtonHeld)