Lua Console - F12 works now if focused on the output window
This commit is contained in:
parent
b2e341e2df
commit
f147cdf75c
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue