     @getSingleton("windowController").revertKeyView @
     yes
 
-  mouseDown:=>
+  mouseDown:->
 
     @setFocus()
     #WHY NO?

    @$().val @getDefaultValue()

  setDefaultValue:(value) ->
    @getDomElement().val value if value isnt ""
    @inputDefaultValue = value

  getDefaultValue:()->

    @getDomElement().removeAttr "disabled"

  getValue:()->
    if @getOption("type") is "checkbox"
      value = @$().is ':checked'
    else
      value = @getDomElement().val()
      {forceCase} = @getOptions()
      if forceCase
        value = if /uppercase/i.test forceCase
          value.toUpperCase()
        else
          value.toLowerCase()

    return value

  setValue:(value)->
    if @getOption("type") is "checkbox"
      @getDomElement().attr checked : value
    else @getDomElement().val(value) if value?

  _prevVal = null

