aino/galleria — Issue #225: attachKeyboard does not work properly with down key when pressed twice in a row and no lightbox
Author: teleyinex
Created: 2011-11-29 09:05:02+00:00
State: open

When I use attachKeyboard in Galleria to attach the up and down keys to open and close lightbox, if someone presses two times the down key without having previously opened the lightbox causes that all the event keys are lost. Any idea about why is this happening?

The code snippet I'm using is this:

```
// Grab the Gallery instance:
var gallery = Galleria.get(0);
// Set key-bindings
gallery.attachKeyboard({
left: gallery.prev,
right: gallery.next,
up: gallery.openLightbox,
down: gallery.closeLightbox
});
```