Messy fix for #5262

Messy fix for #5262

The dialog can be dismissed, but it's not as nice as it should.
But it does it's job because you can't do anything else than typing in the input field after clicking a navigator button.