nkoehler / mat-video

:tv: mat-video is an Angular 8/9+ video player using Material!
https://nkoehler.github.io/mat-video/
MIT License
91 stars 47 forks source link

Disable shortcuts if needed. #6

Closed BoJIbFbI4 closed 5 years ago

BoJIbFbI4 commented 5 years ago

Request, or proposal:

Disable shortcuts if needed.

What is the current behavior?

if you have some input on the page with mat-video and type 'f', => open fullscreen mode.

What is the expected behavior?

choose to disable shortcuts attribute

What are the steps to reproduce?

you can reproduce in your example.

nkoehler commented 5 years ago

Version 2.5.0 has been released which addresses this issue. You can now disable keyboard shortcuts by using the "keyboard" attribute and setting it to false. The readme has been updated as well.

Example: <mat-video src="video.mp4" [keyboard]="false"></mat-video>

Thank you for your patience and support.