Open EEmmanuelLG opened 6 years ago
` protected override bool Callback(CallbackData data) { var eDownUp = GetDownUpEventArgs(data);
InvokeKeyDown(eDownUp);
if (KeyPress != null)
{
var pressEventArgs = GetPressEventArgs(data);
foreach (var pressEventArg in pressEventArgs)
{
InvokeKeyPress(pressEventArg);
eDownUp.Handled = eDownUp.Handled || pressEventArg.Handled;
}
}
InvokeKeyUp(eDownUp);
return !eDownUp.Handled;
}`
See the line added after InvokeKeyPress: eDownUp.Handled = eDownUp.Handled || pressEventArg.Handled;
I have this code in the event:
The KeyChar is displaying in the form but is not handled in other applications. If I add the event KeyDown and do the same it works, but in KeyPress doesn't works.