Created by: michaeldrotar
Firefox and Chrome both fire click events when the spacebar is released on a <button>; however, Chrome suppresses this event if preventDefault is called from the keydown handler and Firefox still fires it so it must be explicitly prevented from the keyup as well to get them both working the same.
Alternatively, could change the dropdown to work with the keyup event instead of keydown but I took this approach as it seemed less destructive with existing code.
Fix for issue https://github.com/twbs/bootstrap/issues/21159