Skip to content

fix(core): remove 1-9 digit key seek from slider keyboard handler#1690

Open
ronald-urbina wants to merge 1 commit into
videojs:mainfrom
ronald-urbina:fix/slider-digit-key-seek
Open

fix(core): remove 1-9 digit key seek from slider keyboard handler#1690
ronald-urbina wants to merge 1 commit into
videojs:mainfrom
ronald-urbina:fix/slider-digit-key-seek

Conversation

@ronald-urbina

@ronald-urbina ronald-urbina commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

The slider's keydown handler was directly handling digit keys 0–9 to seek to decile positions (10%, 20%, etc.). This meant removing from an ejected skin had no effect, the keys still fired through the slider.

Now this logic belongs exclusively in the layer where it can be opted out of.

Removes the digit key handling from createSlider and the corresponding tests.

Closes #1655


Note

Low Risk
Narrow keyboard behavior change in the slider DOM layer; digit seek remains available via hotkeys when configured.

Overview
Removes 0–9 digit keyboard seeking from createSlider’s thumb onKeyDown handler so decile jumps (0%, 10%, …, 90%) are no longer hard-coded in the slider UI layer.

Arrow keys, Home/End, Page Up/Down, and related stepping behavior are unchanged. Digit-based seek is intended to live only in <media-hotkey> (0-9seekToPercent), so custom/ejected skins can drop those hotkeys without the progress slider still intercepting number keys when the thumb is focused.

Corresponding unit tests for numeric keys and modifier suppression are removed.

Reviewed by Cursor Bugbot for commit 73bf118. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

👷 Deploy request for vjs10-site pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 73bf118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Bug: v10 Ejected skin does not respect missing <media-hotkey> for decile timeline controls keys 1-9

1 participant