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 control

Home Forums General Questions Keyboard control

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33079
    vivektrivedi478
    Customer

    hi I created a simple onclick event, which worked perfectly, how do i do the same thing by pressing “ESC KEY” or any other keyboard key?

    Attachments:
    You must be logged in to view attached files.
    #33087

    Hi,

    you can use keyup event for this purpose. There is an example setup in the Puzzles library called “Keyboard Controls”.

    you can find the table with key values here:
    https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values

    Chief 3D Verger | LinkedIn | Twitter

    #33093
    vivektrivedi478
    Customer

    thank you :good: :good:

    #76042
    Anonymous
    Inactive

    As far as I know, you can run any such event on pressing “ESC KEY” using the keyup event in your code. You shall have to register a listener for keyup events and then you can check which key was pressed.
    If you’re interested in even more keyboard customization options, check out the qwertybro.com. They have various keyboards and accessories that might help you get that perfect setup.

    • This reply was modified 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.