that would require top Level JS, which is Not usable within this context.
since when you create a DUI, it sets the URL, like a browser tab. unless u set it to be your own html file, you have no control of key presses.

Iframes are not a solution here, as i explained in the post :slight_smile:
that is just a really hacky and not really a solution to the issue.

Whereas, if u can just inject the KeyPress in, the same way the mouse events are, that is the proper way of achieving it :slight_smile:

For example, if you did,

local duiObject =  CreateDui("https://youtube.com", 2048, 1024)

your Code would not work, because there is no where to put your code, and you cannot iframe that URL, so it remains impossible to go visit that URL in a DUI context, and search for videos, or sign in, within the DUI.

Why limit what you can do, when there is a path for more? :slight_smile:

1 Like