We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9ca184 commit e534dbdCopy full SHA for e534dbd
src/utils/handleKeyDown.ts
@@ -3,7 +3,8 @@ export const handleKeyDown = (
3
callback: () => void,
4
disabled?: boolean
5
): void => {
6
- if (e.key === 'Enter' && !disabled) {
+ if ((e.key === 'Enter' || e.key === ' ') && !disabled) {
7
+ e.preventDefault()
8
callback()
9
}
10
0 commit comments