This is missing an example of the actual instance of your `rappets-redbull` element, but my guess would be that your instance does not receive focus. The `core-a11y-keys` element is active only when the target element is focused.
On Sun, Nov 23, 2014 at 10:28 AM, Jahlom Agboado <[email protected]> wrote: > The following code is my implementation of core-a11y-keys but is not > working. What I'm I doing wrong? > > > <link rel="import" href="polymer/polymer/polymer.html"> > <link rel="import" href="polymer/core-a11y-keys/core-a11y-keys.html"> > > <polymer-element name="rappts-redball"> > <template> > <style> > :host { > width: 50px; > height: 50px; > border-radius: 50px; > background-color: red; > position: absolute; > bottom: 0px; > } > :host #output { > position: absolute; > top: -47px; > } > </style> > <core-a11y-keys target="{{}}" keys="up pageup" > on-keys-pressed="{{moveUp}}"></core-a11y-keys> > <pre id="output"></pre> > </template> > <script> > Polymer('rappts-redball', { > > moveUp: function(event) { > this.$.output.textContent += event.detail.key + ' pressed!\n'; > console.log(event); > } > }); > </script> > </polymer-element> > > Follow Polymer on Google+: plus.google.com/107187849809354688692 > --- > You received this message because you are subscribed to the Google Groups > "Polymer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/CAGB-B9fLu_UhQf4o%2BA3_as7RqYZvCAA2zFF9T8-uBB9otnvBLw%40mail.gmail.com > <https://groups.google.com/d/msgid/polymer-dev/CAGB-B9fLu_UhQf4o%2BA3_as7RqYZvCAA2zFF9T8-uBB9otnvBLw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAAUAVAjc1WmbzoDmVvJtNsQWtkBgCT1SGuQmvwriiA6mazjE2Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
