lua console - hack to keep someone from remove a lua script on accident if the script is highlighted and they press delete in the auto-complete box
This commit is contained in:
parent
6eb9fa9b51
commit
a82f0d1ce7
|
@ -1405,6 +1405,20 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
// For whatever reason an auto-complete TextBox doesn't respond to delete
|
||||
// Which is annoying but worse is that it let's the key propagate
|
||||
// If a script is highlighted in the ListView, and the user presses
|
||||
// delete, it will remove the script without this hack
|
||||
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
||||
{
|
||||
if (keyData == Keys.Delete && InputBox.Focused)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
|
||||
protected override bool ProcessTabKey(bool forward)
|
||||
{
|
||||
// TODO: Make me less dirty (please)
|
||||
|
|
Loading…
Reference in New Issue