     @input.on "keydown", (event) =>
       clearTimeout(@typingTimer) unless @typingTimer is null
 
+      @maybeFixSquishedCaret()
       switch event.which
         when 13 # Enter
           @kill(event)

    range.collapse(true)
    range

  getWord: ->
    # Determine the length of text in the input.
    range = @getRange()

  registerEvents: ->
    @input.on "keyup", =>

      @maybeFixSquishedCaret()
      clearTimeout(@typingTimer) unless @typingTimer is null
      @typingTimer = setTimeout( =>
        # Store selected range (used to recover position when autocomplete menu is clicked).
