Pass through input/hotkeys while Lua form is focused
to restore previous behaviour, call `forms.setproperty(form_handle, "BlocksInputWhenFocused", true);`
This commit is contained in:
parent
af9f5b9b9c
commit
0591d2e2d2
|
@ -519,6 +519,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
FormBase { BlocksInputWhenFocused: false } => AllowInput.All,
|
||||
ControllerConfig => AllowInput.All,
|
||||
HotkeyConfig => AllowInput.All,
|
||||
LuaWinform { BlocksInputWhenFocused: false } => AllowInput.All,
|
||||
_ => AllowInput.None
|
||||
}
|
||||
);
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
private readonly string _currentDirectory = Environment.CurrentDirectory;
|
||||
private readonly LuaFile _ownerFile;
|
||||
|
||||
public bool BlocksInputWhenFocused { get; set; } = false;
|
||||
|
||||
public LuaWinform(LuaFile ownerFile, Action<IntPtr> formsWindowClosedCallback)
|
||||
{
|
||||
_ownerFile = ownerFile;
|
||||
|
|
Loading…
Reference in New Issue