Skip to content

Keycodes #5

@davestewart

Description

@davestewart

Great little library!

Might I suggest adding a keycodes object with keycode constants?

Something like:

parallax.keycodes = 
{
    LEFT:37,
    TOP:38,
    RIGHT:39,
    DOWN:40
};

if(e.keyCode == p.keycodes.LEFT){  }

Mind you, saying that, it might just be more intuitive to add an initialization option for keyboard navigation and have keyboard navigation initialize automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions