 		# Override text property setting the html
 		@html = ""
 
+		# Check if in focus
+		@_isFocused = false
+
 		# Default focus interaction
 		@input.onfocus = (e) =>
 

			# Emit focus event
			@emit(Events.InputFocus, event)

		@input.onblur = (e) =>
			if @value is ""
				@_setPlaceholder()

		@input.onkeyup = (e) =>


			if e.which is 8
				@emit(Events.BackSpaceKey, event)

			# Revert to placeholder
			if @value is ""
				@_setPlaceholder()

	_setPlaceholder: =>
		@input.placeholder =
			if @text isnt "" and @text isnt "Type Something" then @text else "Placeholder"

		unless @_isFocused
			@input.style.color =
				if @color? then @color else "#aaa"

	@define "value",
		get: -> @input.value
