diff --git a/src/components/VAudioTrack/VWaveform.vue b/src/components/VAudioTrack/VWaveform.vue index ce8b257b93..8eac4ce07b 100644 --- a/src/components/VAudioTrack/VWaveform.vue +++ b/src/components/VAudioTrack/VWaveform.vue @@ -217,6 +217,17 @@ export default defineComponent({ default: () => ['timestamps', 'seek'], }, }, + emits: [ + /** + * Emitted when the waveform receives mouse events for seeking, + * either single clicks on a specific part of the waveform, + * or a click and drag. + * + * Also emitted when the waveform receives arrow key or home/end + * keyboard events that also correspond to seeking. + */ + 'seeked', + ], setup(props, { emit }) { /* Utils */ @@ -439,7 +450,7 @@ export default defineComponent({ } const willBeHandled = (event) => - ['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event) + ['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key) const handleKeys = (event) => { if (!willBeHandled(event)) return