Closed PuruVijay14 closed 7 years ago
Hi @PuruVijay14, currently keyBindings
getter needs to be on the instance for this to work.
Also, the default keyEventTarget
will be the element implementing the behavior, which means that the keydown
events will be triggered only if the element is focused (and focusable). Either change the keyEventTarget
to be document
, or make your st-carousal
focusable (tabindex=0
)
In this example I've overridden the default value of keyEventTarget
: http://jsbin.com/nalehed/1/edit?html,output
Description
When I press a right key,
next
function should run, but nothing happensHere is the code
Tested on