Skip to content

I would like to fire an event on ctrl+click of the video and NOT have it toggle play/pause #7447

Answered by mister-ben
codysechelski asked this question in Q&A
Discussion options

You must be logged in to vote

You could disable the click handler on the tech with player.tech(true).off('click'). You'd need to play/pause the video when ctrl is not pressed in your event handler to restore the functionality.
As an aside you probably want to check event.metaKey too for the Mac cmd key. ctrl+click on Mac is a right click.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gkatsev
Comment options

Answer selected by codysechelski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants