and now alt+escape can be bound through the special bindings
This commit is contained in:
parent
e6a979bfd3
commit
0ef31fc598
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue