Make dialogs close when pressing the Escape key

Felipe Borges requested to merge close-dialogs-by-pressing-Esc-key into main

Merge request reports