ibm-js / delite

HTML Custom Element / Widget infrastructure
http://ibm-js.github.io/delite/
Other
68 stars 28 forks source link

KeyNav: ignore space/enter key on <button> elements #450

Closed wkeese closed 8 years ago

wkeese commented 8 years ago

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().

wkeese commented 8 years ago

Needed by ibm-js/deliteful#628.