Skip to content

Commit 8c725dc

Browse files
committed
refactor: replace keyCode with key
1 parent d92ed99 commit 8c725dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ApiExplorer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ import { Aside } from '@astrojs/starlight/components'
100100
value="pokemon/ditto"
101101
pattern="(\w|\d|-)+( |(/(\w|\d|-)+)+)"
102102
minlength="1"
103-
onkeypress="if(event.keyCode === 13) sendRequest()"
103+
onkeypress="if(event.key === 'Enter') sendRequest()"
104104
>
105105
</label>
106106
<button

0 commit comments

Comments
 (0)