fix grabinput toggling

fixes #4383