Skip to content

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

Merged
ctd1500 merged 2 commits intoctd1500:masterfrom
mehanig:feature/disable-modifyers-keys-for-numbers
Oct 7, 2016
Merged

Fix for overwriting browser hotkeys with numbers (Ctrl, Alt, Cmd + Number)#35
ctd1500 merged 2 commits intoctd1500:masterfrom
mehanig:feature/disable-modifyers-keys-for-numbers

Conversation

@mehanig
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants