Fix menuwindow hangup in OSX

Under OSX the “use Textblocks” window was hidden but the input was not
directed back to the old window.