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
|
||||
await activeForm.ActionControls(mr);
|
||||
|
||||
//Send Action event to form itself
|
||||
await activeForm.Action(mr);
|
||||
if (!mr.Handled)
|
||||
{
|
||||
//Send Action event to form itself, if not already handled by a control
|
||||
await activeForm.Action(mr);
|
||||
}
|
||||
|
||||
if (!mr.Handled)
|
||||
{
|
||||
|
||||
@ -77,8 +77,11 @@ public class FullMessageLoop : IMessageLoopFactory
|
||||
//Send Action event to controls
|
||||
await activeForm.ActionControls(mr);
|
||||
|
||||
//Send Action event to form itself
|
||||
await activeForm.Action(mr);
|
||||
if (!mr.Handled)
|
||||
{
|
||||
//Send Action event to form itself, if not already handled by a control
|
||||
await activeForm.Action(mr);
|
||||
}
|
||||
|
||||
if (!mr.Handled)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user