 
       event = buildKeydownEvent(key: 'A', shiftKey: true, target: document.body)
       keymapManager.handleKeyboardEvent(event)
-      assert(not event.defaultPrevented)
+      assert(!event.defaultPrevented)
 
     it "rejects bindings without a command and logs a warning to the console", ->
       stub(console, 'warn')

      [workspace, editor, editor2, events, inputElement, input2Element] = []

      beforeEach ->
        workspace = appendContent($$(->
          @div { 'class': 'workspace' }, ->
            @div { 'class': 'editor' }, ->
              @input
                'class': 'input'
                type: 'text'
            @div { 'class': 'editor2' }, ->
              @input
                'class': 'input2'
                type: 'text'
        ))
        editor = workspace.firstChild
        editor2 = editor.nextSibling
        inputElement = document.querySelector('.input')

        assert.deepEqual(events, ['abc-secret-code'])

    it "only counts entire keystrokes when checking for partial matches", ->
      element = $$ -> @div class: 'a'
      keymapManager.add 'test',
        '.a':
          'ctrl-alt-a': 'command-a'
