Skip to content

Commit ee95e9d

Browse files
committed
fix: Home/End shortcuts should preventDefault
1 parent 85206b2 commit ee95e9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ function focusKeydown(event: KeyboardEvent) {
306306
buttons[i].setAttribute('tabindex', i === n ? '0' : '-1')
307307
}
308308

309+
// Need to stop home/end scrolling:
310+
event.preventDefault()
311+
309312
buttons[n].focus()
310313
}
311314

0 commit comments

Comments
 (0)