I like the possibility to close a window with esc key. This works very well as long as we do not open a second modal window from an already opened modal window. Step by step:
– If window A is opened, it can be closed with esc
– If window A is opened, then from this window a second window B ist opened, window B CAN be closed with esc, but after coming back to window A (this is still open), window A can no more be closed with esc.
What can be done against this? Thanks in advance for help!
During creation of the example, I found the solution just be myself: The problem is the focus: We need to set the focus to the first opened window, after the second one has been closed! If we do so, also the first one can be closed by esc as expected!