Skip to content

Commit

Permalink
fix: cycle raycast keycode
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo authored Oct 20, 2023
1 parent 870d742 commit 3433da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/CycleRaycast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function CycleRaycast({

// Key events
const tabEvent = (event: KeyboardEvent) => {
if (event.keyCode || event.which === keyCode) {
if ((event.keyCode || event.which) === keyCode) {
if (preventDefault) event.preventDefault()
if (hits.length > 1) refresh((current) => current + 1)
}
Expand Down

0 comments on commit 3433da6

Please sign in to comment.