Closed xluk9 closed 3 years ago
@kandiu Hi! See https://github.com/kasper/phoenix/blob/master/docs/API.md#managing-handlers. You need to keep a reference to the handler when initialising them manually, i.e. const key = new Key(…)
. Otherwise it will be released. Alternatively use, Key.on(…)
and Phoenix will do it for you. Hope this helps!
@kasper Hi! Thank you for the fast reply. It was indeed that the problem, I somehow missed it while reading the documentation. Thank you!
@kandiu Great, good to hear! Let me know if the documentation can be improved.
Hello, new to Phoenix. I've been trying to implement the raise-or-run functionality on my own and it works for a couple of times. Basically, Phoenix for whatever reason, after a couple of times, stops working for any key binding.
Simplified code
There are no error messages in the Console.app. I was trying with
WMS_MOD + m
and I see Entered in M a couple of times and then all key bindings stop working. I cannot see any more output in the Console.app. The only way to fix is Reload. How can I debug this ?