RobertWHurst/KeyboardJS — Issue #21: How best to switch between keybindings between views?
Author: kimptoc
Created: 2012-03-02 07:25:35+00:00
State: open

Hi,

For my Smart TV app, I have a single page web app with 2 views - a channel list and then a detailed channel view - showing available episodes.

I'd like the key bindings to be done separately for each view.

Eg "enter" key on channel list, selects a channel but on detail view, the same key plays the highlighted/selected episode.

Any tips on how to handle this?

Looks like I should unbind/bind keys as I switch views, but wondering if there was an alternative.

Thanks,
Chris