WIP: Chat opens with T. GameMenu closes if there is no need for it from a guiwindow.
"T" opens chat. Gui also works as it used to be, with the added feature, that once all "important" windows are closed, it closes the game menu, i.e. grabs the mouse, thus satisfying my and Quantums wishes. This means, that by double pressing 'c' your return from the create inventory to the game. (if no other window was opened)
fixes #401
Also another possible idea, that might be better for your use-case: What if the menu only closes if you press the key of the window that's currently on top? Then no matter what other menus are open, if you press E a second time it will go back to the game.
hmm i will think about that, but i think it would feel more natural if the GameMenu closes if the first (bottom) opened Window would be closed instead?
Since this PR is stale and many people are requesting a shortcut to open chat, I decided to close this and move the chat shortcut into its own commit f9079be9cafedb4bd8ab6288049b5b51c86b3154.