Fix Action method handling, if handled by control already
This commit is contained in:
parent
87d57c471a
commit
dc28bde382
@ -84,8 +84,11 @@ public class FormBaseMessageLoop : IMessageLoopFactory
|
|||||||
//Send Action event to controls
|
//Send Action event to controls
|
||||||
await activeForm.ActionControls(mr);
|
await activeForm.ActionControls(mr);
|
||||||
|
|
||||||
//Send Action event to form itself
|
if (!mr.Handled)
|
||||||
await activeForm.Action(mr);
|
{
|
||||||
|
//Send Action event to form itself, if not already handled by a control
|
||||||
|
await activeForm.Action(mr);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mr.Handled)
|
if (!mr.Handled)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -77,8 +77,11 @@ public class FullMessageLoop : IMessageLoopFactory
|
|||||||
//Send Action event to controls
|
//Send Action event to controls
|
||||||
await activeForm.ActionControls(mr);
|
await activeForm.ActionControls(mr);
|
||||||
|
|
||||||
//Send Action event to form itself
|
if (!mr.Handled)
|
||||||
await activeForm.Action(mr);
|
{
|
||||||
|
//Send Action event to form itself, if not already handled by a control
|
||||||
|
await activeForm.Action(mr);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mr.Handled)
|
if (!mr.Handled)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user