adopted-ember-addons/ember-keyboard

Cannot register handlers for : key

edwardhelsby-intercom opened this issue · 4 comments

Handlers registered against : using the on-key helper do not work.

let [eventType, keyCombo] = s.split(':');

let [eventType, keyCombo] = 'keyDown::'.split(':');
keycombo = ''

@edwardhelsby-intercom could you please provide some more info, e.g. how did you try to use the on-key helper and which arguments were provided?

Sure! within a template like so:

{{on-key ':' this.doThing}}

With that in the template, pressing : does not trigger this.doThing

@edwardhelsby-intercom could you please try ember-keyboard@8.2.0-unstable.56621f2 and confirm if it fixes an issue you reported?

I accidentally pushed the fix to the master branch instead of doing PR via 56621f2 🙈

@edwardhelsby-intercom could you please try ember-keyboard@8.2.0-unstable.56621f2 and confirm if it fixes an issue you reported?

I accidentally pushed the fix to the master branch instead of doing PR via 56621f2 🙈

Thanks for making that fix 🚀 I'm a couple of major versions behind so it may be a while before able to test that out