You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Hmn, so do I understand correctly that it is a new requirement for all button click handlers is for user to e.cancel in the handler? Otherwise any default buttons nearby may get click handler (now called Accepting) called?
Correct.
Note, previously, e.Handed/e.Cancel actually did either nothing or was non-deterministic. So while it was "easier to use" it was actually deeply broken.
We should double check there are no IsDefault issues with our existing dialogs like MessageBox and the Query one - if they have defaults we will need this new esc bit
I already did this when I implemented all this.
I also think this is going to be confusing for new users. But happy to merge and see how it goes.
The crux of this is the making Accepting universal and getting rid of explicit Clicked events.
Things are now super consistent and deterministic, but there IS a bit of mental load required to "get it".
I'm happy to discuss ways of mitigating this. Thots:
Add an Accepted event that is raised AFTER and can't be cancelled.
Correct.
Note, previously,
e.Handed/e.Cancel
actually did either nothing or was non-deterministic. So while it was "easier to use" it was actually deeply broken.I already did this when I implemented all this.
The crux of this is the making
Accepting
universal and getting rid of explicitClicked
events.Things are now super consistent and deterministic, but there IS a bit of mental load required to "get it".
I'm happy to discuss ways of mitigating this. Thots:
Accepted
event that is raised AFTER and can't be cancelled.Clicked
. I hate this idea.Others?
Originally posted by @tig in #3921 (comment)
The text was updated successfully, but these errors were encountered: