Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Can't listen for alt, meta, or shift #81

Description

@bennypowers

Description

I'm apparently unable to bind to the alt, shift, and meta keys with the following keyBindings property

      keyBindings: {
        'alt': '_handleKeydown',
        'Alt': '_handleKeydown',
        'AltGraph': '_handleKeydown',
        'meta': '_handleKeydown',
        'control': '_handleKeydown', // => control
        'shift': '_handleKeydown',
        'Shift': '_handleKeydown',
        'U+0051': '_handleKeydown',
      },

      _handleKeydown: function(event) { console.log(event.detail.key); },

Expected outcome

pressing alt should log alt, pressing shift should log shift, etc.

Actual outcome

Only pressing ctrl logs control

Live Demo

https://jsbin.com/tuwodezoro/edit?html,output

Steps to reproduce

see demo

Browsers Affected

  • Chrome 60 mac.

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