 
       event = buildKeydownEvent(key: 'A', shiftKey: true, target: document.body)
       keymapManager.handleKeyboardEvent(event)
-      assert(not event.defaultPrevented)
+      assert(!event.defaultPrevented)
 
     it "returns a disposable allowing the added bindings to be removed", ->
       disposable1 = keymapManager.add 'foo',

      it "does not prevent the event's default action", ->
        event = buildKeydownEvent(key: 'q')
        keymapManager.handleKeyboardEvent(event)
        assert(not event.defaultPrevented)
    describe "when the keystroke matches one binding on any particular element", ->
      [events, elementA, elementB] = []

      beforeEach ->
        elementA = appendContent($$(->
          @div { 'class': 'a' }, ->
            @div 'class': 'b c'
        ))
        elementB = elementA.firstChild

        events = []

      assert.deepEqual(events, ['command'])

    it "simulates bubbling if the target is detached", ->
      elementA = $$ ->
        @div class: 'a', ->
          @div class: 'b', ->
            @div class: 'c'
      elementB = elementA.firstChild
      elementC = elementB.firstChild

