Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for overwriting browser hotkeys with numbers (Ctrl, Alt, Cmd + Number) #35

Merged

Conversation

mehanig
Copy link
Contributor

@mehanig mehanig commented Sep 21, 2016

Hi!

Problem: While focus is on player, Numbers [0..9] react as expected - rewinds player to specific % of video. But, if Command + Number, Ctrl + Number or Alt + Number is pressed, player behaves same. This combination is usually set to browsers Select Tab Hotkey ( Go to Nth Tab )

Solution: I realize, that someone would like this behavior, and for backwards compatibility, this logic should stay as default. But, if it's unexpected, let's give an option to react only if Number is pressed without modifiers. This is done by adding new default option - enableModifiersForNumbers

@mehanig mehanig changed the title Fix for overwriting browser hotkeys with numbers (Ctrl + [0..9] or Cmd + [0..9]) Fix for overwriting browser hotkeys with numbers (Ctrl + [0..9], Cmd + [0..9] or Alt + [0..9]) Sep 21, 2016
@mehanig mehanig changed the title Fix for overwriting browser hotkeys with numbers (Ctrl + [0..9], Cmd + [0..9] or Alt + [0..9]) Fix for overwriting browser hotkeys with numbers (Ctrl, Alt, Cmd + Number) Sep 21, 2016
mehanig added a commit to StepicOrg/videojs-hotkeys that referenced this pull request Oct 4, 2016
@ctd1500 ctd1500 merged commit 8f8ceb5 into ctd1500:master Oct 7, 2016
@ctd1500
Copy link
Owner

ctd1500 commented Oct 7, 2016

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants