adopted-ember-addons/ember-keyboard

keyArray.sort is not a function

svdsande opened this issue · 3 comments

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.

@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.

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

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