stevenleeg/keymaster — pull request #1 by listentorick (2011-11-18 10:57:01+00:00)
Title: So I've fixed your test.....

I believe you were trying to test the wrong thing!

Your changes to the library enable multiple scopes to be executed at once!

For example:

key('q', 'issues', function() { /* do something */ });

key('r', 'files', function() { /* do something */ });

key.setScope('issues, files') // q shortcut and r shortcut will run on this scope...

It appears that you were expecting your code changes to mean that key presses could execute in different scopes! Thats not what you'd done!

Hope this helps!