Fix Firefox issue that triggers the buttons on spacebar.