(target: HTMLInputElement, key: string)
| 1216 | ]); |
| 1217 | |
| 1218 | function isValidInputKey(target: HTMLInputElement, key: string) { |
| 1219 | // Only space should toggle checkboxes and radios, not enter. |
| 1220 | return target.type === 'checkbox' || target.type === 'radio' |
| 1221 | ? key === ' ' |
| 1222 | : nonTextInputTypes.has(target.type); |
| 1223 | } |
no test coverage detected