The new "onkey" solution triggers video controls from within the interaction

Description

Background

In we added a shortcut for muting the sound and refactored the code to be functional programming. Now the "muting" key "m" and play/pause key "k" is toggled from within the interaction when typing answers and similar.

Acceptance Criteria

1. Ensure that none of the keyboard shortcuts for the video can be triggered when answering the interactions.
2. Refactor the function to have keydown in the name so that it's easier to find for other web developers.
3. Fix missing this reference inside keydown handler/callback.

Environment

None

Acceptance Criteria

None

Status

Assignee

Pål Jørgensen

Reporter

Frode Petterson

Funding

None

Code reviewer

None

Released

None

Time tracking

0m

Fix versions

None

Sprint

None

Priority

High
Configure