We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Keyboard controls and html FAQ help

Home Forums Graphics / Blender Keyboard controls and html FAQ help

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #23459

    I’ve this issue found in the FAQ’s:
    Keyboard controls does not work for the app embedded in iframe.

    It happens when some other HTML on your page gets the focus. To fix this issue try the following code:
    document.getElementById(“my_iframe_id”).focus();Where my_iframe_id is the ID of your iframe element.

    I tried to put the code in different sections of index.html (using the correct ID of my iframe) but nothing changes… Where do you put this code? :scratch:
    Thanks again!


    Hi Fausto,

    this code should be placed inside <script> </script> tags, which in turn are placed somewhere after your <iframe> tag.

    Chief 3D Verger | LinkedIn | Twitter


    Hi Yuri,
    thank you for the quick reply! I tried but with no success yet(im not very good in html coding..I will keep trying), to get the keyboard commands to work i must enter in fullscreen mode with the button in the upper right corner, then when returning back in normal screen mode it continues to function right.
    I attached my index, i put the script in various position, now is at the end.


    Looks like the file was not attached. You can upload your app to Verge3D Network if you want.

    Chief 3D Verger | LinkedIn | Twitter


    Hi i seem to have the same problem .. is there a solution? As soon as the Verge 3D Part is embedded via iframe in the userinterface-html via Adobe Dreamweaver, the key input no longer works as soon as a 3D object or Html interface object is clicked. I have tested all Blender Export variants in terms of control options and even recreated the control of the camera with puzzles … no success. There are no divs or anything similar. The code from the FAQ area did not solve the problem. The control can only be activated as desired when you switch to the full screen and then return. Unfortunately, I have not found a way in the puzzle menu to initially switch to fullscreen mode automatically, as a possible workaround. I would be very grateful for your help, as my HTML knowledge is very limited. :wacko:


    I am having the same problem, Keyboard controls does not work for the app embedded in iframe, the proposed solution seems not to work. Thank you




    And in general, if an <iframe> element occupies 100% of a page space then this <iframe> is not needed at all.

    This simple script will set focus on <iframe> if it’s not in focus

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.


    thanks the javascript works very well :yahoo:

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.