Close and apply any changes for dates widget when using esc

What does this MR do and why?

Previously, we had ensured the Dates widget was able to be closed (and any changes applied) using the esc key, similar in the legacy widget (#442819 (closed)). At some point, there must have been a regression which has caused this to no longer function. In addition, we currently have a bug where trying to use the esc key on the Dates widget closes the contextual view if you have it open. This merge request has the fix for above-mentioned behaviour.

References

Related Issue - #541589

Screenshots or screen recordings

Before After
esc-dates.gif Screen_Recording_2025-11-19_at_2.35.53_PM

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #541589

Edited by Pooja Ghanghas

Merge request reports

Loading