Skip to content

Commit

Permalink
Merge pull request anse-app#435 from LyuLumos/main
Browse files Browse the repository at this point in the history
fix deprecated keycode property
  • Loading branch information
ddiu8081 committed 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

0 comments on commit e84fffb

Please sign in to comment.