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

@grimace

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions