Lua Console - F12 works now if focused on the output window

This commit is contained in:
adelikat 2013-11-17 16:58:24 +00:00
parent b2e341e2df
commit f147cdf75c
2 changed files with 9 additions and 0 deletions

View File

@ -512,6 +512,7 @@
this.OutputBox.Size = new System.Drawing.Size(246, 283);
this.OutputBox.TabIndex = 2;
this.OutputBox.Text = "";
this.OutputBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OutputBox_KeyDown);
//
// contextMenuStrip2
//

View File

@ -1265,5 +1265,13 @@ namespace BizHawk.Client.EmuHawk
{
registeredFunctionsToolStripMenuItem.Enabled = LuaImp.RegisteredFunctions.Any();
}
private void OutputBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F12 && !e.Control && !e.Alt && !e.Shift) //F12
{
showRegisteredFunctionsToolStripMenuItem_Click(null, null);
}
}
}
}