Skip to content

Commit 1cf0c6e

Browse files
(Lookup): add a space key support
1 parent a3df654 commit 1cf0c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/Lookup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ export const Lookup = createFC<LookupProps, { isFormElement: boolean }>(
410410
e.preventDefault();
411411
e.stopPropagation();
412412
config.onClose();
413-
} else if (e.keyCode === 13) {
414-
// Enter
413+
} else if (e.keyCode === 13 || e.keyCode === 32) {
414+
// Enter or Space
415415
e.preventDefault();
416416
e.stopPropagation();
417417
config.onSelect();

0 commit comments

Comments
 (0)