bry4n / backbone-shortcuts

Backbone.js + Keymaster.js = Backbone.Shortcuts (Keyboard shortcuts)
http://bry4n.github.com/backbone-shortcuts
MIT License
99 stars 16 forks source link

Keyboard shortcut events stay bound when navigating to different view. #8

Open wuliwong opened 11 years ago

wuliwong commented 11 years ago

When you change views, within the same Backbone Router, the events stay bound to the keyboard shortcut. I'm listing this as a 'bug' because I find this library relatively unusable without the ability to assign events on a view-by-view basis.

marcuslindblom commented 11 years ago

+1 I experience the same issue, @bry4n are there any plans on fixing it?

ghost commented 11 years ago

Yep, having some undelegate method would be great. +1.

marcuslindblom commented 11 years ago

@lumrandir check out this fork https://github.com/orloffv/backbone-shortcuts/blob/master/backbone.shortcuts.js

ghost commented 11 years ago

@marcuslindblom thanks for your reply though I have already solved the original problem.

marcuslindblom commented 11 years ago

@lumrandir :+1:

nrako commented 11 years ago

@marcuslindblom you should make a PR