Just like KeyNav ignores keystrokes on an <input>, it should also ignore them on a <button>. Although a <button> cannot take user input in the same way as an <input>, it will convert space/enter key into a button click assuming that the KeyNav doesn't intercept the keydown event and call preventDefault().
Just like KeyNav ignores keystrokes on an
<input>
, it should also ignore them on a<button>
. Although a<button>
cannot take user input in the same way as an<input>
, it will convert space/enter key into a button click assuming that the KeyNav doesn't intercept thekeydown
event and callpreventDefault()
.