       @push
         _name: "mode-#{@id}/exitOnEscape"
         "keydown": (event) =>
-          return @continueBubbling unless KeyboardUtils.isEscape event
+          unless KeyboardUtils.isEscape event
+            return @continueBubbling
           @exit event, event.target
           @suppressEvent
 

  logModes: ->
    if Mode.debug
      @log "active modes (top to bottom):"
      @log " ", mode.id for mode in Mode.modes[..].reverse()
    return

  log: (args...) ->
    console.log args... if Mode.debug
    return

  # For tests only.

    Mode.modes.push this
    @setIndicator()
    @logModes()
    return
    # End of Mode constructor.

  setIndicator: (indicator = @options.indicator) ->
