Skip to content

Inconsistency in left/right keydowns #32

Open

Description

@ffxsam

Just wondering, why is it that ctrl/shift/alt don't distinguish between left/right, but the Mac command key does?

Activity

  1. heymath commented on Nov 18, 2016

    @heymath

    I guess because keycode uses event.keyCode to determine key names, and it seems that cmd left and cmd right have different keyCode, but ctrl left and ctrl right share the same keyCode with an event.location set to 1 or 2 to make the difference :/

  2. ctf0 commented on Dec 11, 2017

    @ctf0

    also keydown could give different keycode from keypress

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