Give specs window a keymap with the default bindings

This commit is contained in:
Nathan Sobo
2012-03-07 11:04:41 -07:00
parent baeef54be3
commit 20deb80d9f

View File

@@ -14,6 +14,10 @@ beforeEach ->
afterEach ->
$('#jasmine-content').empty()
specsKeymap = new GlobalKeymap
specsKeymap.bindDefaultKeys()
$(window).on 'keydown', (e) -> specsKeymap.handleKeyEvent(e)
# Use underscore's definition of equality for toEqual assertions
jasmine.Env.prototype.equals_ = _.isEqual