and now alt+escape can be bound through the special bindings

This commit is contained in:
zeromus 2014-04-22 20:04:23 +00:00
parent e6a979bfd3
commit 0ef31fc598
1 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,7 @@ namespace BizHawk.Client.EmuHawk
DropdownMenu = new ContextMenuStrip();
DropdownMenu.ItemClicked += new ToolStripItemClickedEventHandler(DropdownMenu_ItemClicked);
DropdownMenu.PreviewKeyDown += new PreviewKeyDownEventHandler(DropdownMenu_PreviewKeyDown);
foreach (var str in InputWidget.SpecialBindings)
{
var tsi = new ToolStripMenuItem(str);
@ -29,6 +30,13 @@ namespace BizHawk.Client.EmuHawk
widget.CompositeWidget = this;
}
void DropdownMenu_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
//suppress handling of ALT keys, so that we can receive them as binding modifiers
if (e.KeyCode == Keys.Menu)
e.IsInputKey = true;
}
public void TabNext()
{
Parent.SelectNextControl(btnSpecial, true, true, true, true);