How can I have something that grabMouse() & grabKeyboard() do, but not only for the main window but menu and toolbar also?