Skip to content

Commit

Permalink
🐛 pageUp, pageDown scroll page
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 6, 2022
1 parent 4ef386b commit 67f055f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/annotation/KeyframePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ const handleKeydown = event => {
} else if (currentFocus.value === 'right') {
moveRightFrame(delta)
}
event.preventDefault()
} else if (event.code === 'PageDown') {
const delta = Math.round(0.1 * annotationStore.video.frames)
if (currentFocus.value === 'range') {
Expand All @@ -340,6 +341,7 @@ const handleKeydown = event => {
} else if (currentFocus.value === 'right') {
moveRightFrame(delta)
}
event.preventDefault()
} else if (event.code === 'Comma') {
handlePreviousKeyframe()
} else if (event.code === 'Period') {
Expand Down

0 comments on commit 67f055f

Please sign in to comment.