Is there any straightforward way of telling the whole WPF application to react to Escape key presses by attempting to close the currently focused widow? It is not a great bo
Another possible way is to use attached properties
Bellow is a gist code: