Fix hotkeys in Linux and Mac OS X

Needed for hotkeys to function correctly on Linux and OS X.

The reason this is necessary is because a wxFrame will only receive keyboard focus if it has at least one child.