Typing F into content scripts UI chatbox fullscreens the video player on the page.

Hi, I am coding an extension on coursera.org in which I use content scripts UI to embed a button into the page that upon pressing, an embedded chatbox popup opens up. However, my problem is that I cannot type anything with the letter "F" as it automatically fullscreens the video embedded into the page. I was wondering if there is a fix for that. If not, something I have looked into is instead of making the chatbox embedded into the page, it would open up in a new draggable "mini" window, however I cannot seem to get that working. From reading some posts, I believe I would have to use the messaging API since its a content script and not in the popup.tsx? Thank you, any help would be appreciated.
1 Reply
illmagination
illmagination•14mo ago
You'll have to catch the keystroke and either use preventDefault or stopPropigation.
Want results from more Discord servers?
Add your server