Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

how to listen to Key events #308

Description

@grimace

I've tried adding an eventListener to document ( which has worked in a other keyboard plugins ), like this:

document.addEventListener('keydown', (key) => {this.onKeyPress(key)} );

but when I get the event call back, all I get is:

{"isTrusted":true}"

Is there a way to listen for keydown or keyup?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions