Change to put the query editor popup in focus when the button
"Customize" has been clicked. In this way is you have lost
the focus the popup window will be uprised