1) open the "Internationalization Wizard" or the
"Internationalization Test Wizard"
2) Press Add Source (Alt-A) , Remove Source(s)
(Alt-R), or Next and Select All (Alt-A), Select
3) Press cancel to cancel the dialog that appears
4) Press Alt-B ---> the main "Build" menu appears,
i.e. the focus is in the main window, not in the
NodeOperation is used to show the dialog and in the case of ESC,
nothing else is executed in the action handler. I suspect the problem
is in NodeOperation.select.
I even tried to manually reclaim the focus after the modal dialog
finishes ( .select returns ), but that didn't help.
This is problem of all modal dialogs, they have MainWindow set as their parent,
and this is where the focus returns to.
not really all dialogs.
it's the problem of Fileselector dialog created in the NodeOperation.select()
method. The FileSelector is always created with null as the parent window,
resulting in focus going to main window. Not sure what are the reasons for using
a custom CoronaDialog instead of the default Notify/DialogDescriptor. Historical
fixed by replacing the obsolete coronadialog with
dialogdescriptor+dialogdisplayer standard solution which knows how to handle
focus in dialogs. Also improves dialog behaviour on macosx.