Skip to content

Commit

Permalink
Merge pull request #14 from milenacerna/new_branch
Browse files Browse the repository at this point in the history
Repaired function of the Enter on Numpad
  • Loading branch information
tomastauer authored Apr 4, 2024
2 parents 862cfba + c503dda commit f78fcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Input = ({ value, onValueChange, onEnter }: Props) => {
};

const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.code === 'Enter') {
if (e.code === 'Enter' || e.code === 'NumpadEnter') {
e.preventDefault();
onEnter();
}
Expand Down

0 comments on commit f78fcd6

Please sign in to comment.