Fix Action method handling, if handled by control already

This commit is contained in:
Florian Zevedei 2024-05-19 14:06:01 +02:00
parent 87d57c471a
commit dc28bde382
2 changed files with 10 additions and 4 deletions

View File

@ -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)
{ {

View File

@ -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)
{ {