make hidden buttons not accept input

Skip mouse, keyboard, and focus stuff if ui element is hidden