tastudio: don't pass ctrl+c hotkey to mainform.

This commit is contained in:
feos 2016-08-01 20:23:16 +03:00
parent f1e8ec02dc
commit 13476f33ca
2 changed files with 6 additions and 0 deletions
BizHawk.Client.Common/tools/Interfaces
BizHawk.Client.EmuHawk

View File

@ -37,6 +37,7 @@
//Necessary winform calls
bool Focus();
bool ContainsFocus { get; }
void Show();
void Close();
bool IsDisposed { get; }

View File

@ -43,6 +43,11 @@ namespace BizHawk.Client.EmuHawk
TakeScreenshot();
break;
case "Screen Raw to Clipboard":
// Ctrl+C clash. any tool that has such acc must check this.
// maybe check if mainform has focus instead?
if (GlobalWin.Tools.IsLoaded<TAStudio>())
if (GlobalWin.Tools.Get<TAStudio>().ContainsFocus)
break;
TakeScreenshotToClipboard();
break;
case "Screen Client to Clipboard":