I have a single-page app where I would like to listen for keyboard subscriptions when a certain route is selected, and I can’t figure out how this is done. I’ve recreated the problem in a simple repo based on the Elm Guide’s example Navigation app. Am I allowed to put a conditional in the
subscriptions function? This is the line that breaks the keyboard listener for me.
I also put this on Ellie, but I don’t think routes are supported there so it doesn’t compile.