 		self.placeholder = placeholder
 		self.action = action
 		self.enabled = enabled
+		self.autofocus = autofocus
+		self.forceValueWhileEditing = forceValueWhileEditing
 		super.init(frame: CGRect(x: 0, y: 0, width: 100, height: 23))
 		
 		self.inputDelegate.action = { [unowned self] field in

	public var enabled: Bool
	public var action: String -> ()

	internal let inputDelegate = InputDelegate()



	public init(text: String? = nil, initialText: String? = nil, placeholder: String? = nil, enabled: Bool = true, autofocus: Bool = false, forceValueWhileEditing: Bool = false, action: String -> () = { _ in }) {
		self.text = text

			cell?.placeholderString = placeholder ?? ""

			if let text = text {
				let firstResponder: Bool
				if let firstResponderTextView = textField.window?.firstResponder as? NSTextView {
					firstResponder = firstResponderTextView.delegate === textField
				} else {
					firstResponder = false
				}

				if text != textField.stringValue && !firstResponder && !forceValueWhileEditing {
					textField.stringValue = text
				}
			}
