medmatix / html5slides

Automatically exported from code.google.com/p/html5slides
0 stars 0 forks source link

[Feature request] key bindings #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Create a configurable key bindings pool

so you can do things like:

function KeyCheck (e)
{
  var KeyID = (window.event) ? event.keyCode : e.keyCode;

  if (KeyID == 66)
    {
      videoElement = slideEls[curSlide].getElementsByTagName("video")[0];

      if (videoElement.paused == true)
        videoElement.play ();
      else
        videoElement.pause ();
    }
}

Which allows me to use my Kensington 33374 Wireless Presenter's 'b' key to play 
<video> on the slide

Original issue reported on code.google.com by x3n.me.uk@gmail.com on 28 Jul 2012 at 2:15