           keyup: (event) =>
             if event.keyCode == keyCode
               handlerStack.remove()
-              @setOpenLinkMode previousMode if @isActive
+              @setOpenLinkMode previousMode
             true # Continue bubbling the event.
 
         # For some (unknown) reason, we don't always receive the keyup event needed to remove this handler.

      keypress: @onKeyPressInMode.bind this, hintMarkers

    @hintMode.onExit =>
      @deactivateMode() if @isActive
    @hintMode.onExit onExit

    @setOpenLinkMode mode

  mode: undefined
  # Function that does the appropriate action on the selected link.
  linkActivator: undefined
  # The link-hints "mode" (in the key-handler, indicator sense).
  hintMode: null
  # Call this function on exit (if defined).
