Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Keyboard support #16

Closed
the0neyouseek opened this issue Sep 4, 2014 · 3 comments
Closed

Keyboard support #16

the0neyouseek opened this issue Sep 4, 2014 · 3 comments
Milestone

Comments

@the0neyouseek
Copy link

Keyboard arrow support would be nice 😄

@gilbitron gilbitron added this to the v1.1.0 milestone Sep 5, 2014
@gilbitron
Copy link
Contributor

Agreed.

@the0neyouseek
Copy link
Author

Don't know if that helps but here's some basic implementation:

document.onkeydown = function (e) {
  e = e || window.event;
  var button = (typeof e.which == "number") ? e.which : e.keyCode;

  if (button == 37) {
    // previous
  } else if (button == 39) {
    // next
  }
};

gilbitron added a commit that referenced this issue Sep 8, 2014
@gilbitron
Copy link
Contributor

I've implemented this in v1.1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants