Prevent Spacebar
preventDefaultSpacebar
that prevents the default behavior of the spacebar keydown event. The function should take no parameters. For example, preventDefaultSpacebar()
would prevent the default behavior of the next spacebar keydown event.