(target: HTMLInputElement, key: string)
| 1191 | ]); |
| 1192 | |
| 1193 | function isValidInputKey(target: HTMLInputElement, key: string) { |
| 1194 | // Only space should toggle checkboxes and radios, not enter. |
| 1195 | return target.type === 'checkbox' || target.type === 'radio' |
| 1196 | ? key === ' ' |
| 1197 | : nonTextInputTypes.has(target.type); |
| 1198 | } |
no test coverage detected