adopted-ember-addons / ember-keyboard

An Ember.js addon for the painless support of keyboard events
http://adopted-ember-addons.github.io/ember-keyboard/
Other
177 stars 57 forks source link

keyArray.sort is not a function #692

Closed svdsande closed 1 year ago

svdsande commented 1 year ago

I installed version 7.0.1 and I am trying to trigger an action based on a given key press. The example below results in the following error: TypeError: keyArray.sort is not a function

{{on-key "KeyB" (action "onKeyPress")}}`

The error occurs in listener-name util. I am not sure if I am missing something. Let me know if I could help in any way.

lukemelia commented 1 year ago

@svdsande I tried to reproduce your issue in a test (https://github.com/adopted-ember-addons/ember-keyboard/pull/new/svdsande-repro-attempt) but it passed. Please take a look at that branch and see if you can create a reproduction / failing test.

svdsande commented 1 year ago

@lukemelia Thanks for the quick response! I will try to create a reproducible scenario based on that branch. Will keep you posted 👍

svdsande commented 1 year ago

Looks like my setup was incorrect 🙈 So this issue is not relevant. Thanks for the help.