Skip to content

Commit

Permalink
Merge pull request #435 from LyuLumos/main
Browse files Browse the repository at this point in the history
fix deprecated keycode property
  • Loading branch information
ddiu8081 authored Sep 12, 2023
2 parents 459c6ba + a9b6670 commit e84fffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Generator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export default () => {
if (e.isComposing || e.shiftKey)
return

if (e.keyCode === 13) {
if (e.key === 'Enter') {
e.preventDefault()
handleButtonClick()
}
Expand Down

1 comment on commit e84fffb

@vercel
Copy link

@vercel vercel bot commented on e84fffb Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.