     super.viewWillDisappear(animated)
     settingsSavedCallback(serverAddressTextField.text)
   }
-}+  
+  func textFieldShouldReturn(textField: UITextField) -> Bool {
+    textField.resignFirstResponder()
+    return true
+  }
+}

    serverAddressTextField.layer.cornerRadius = 3
    serverAddressTextField.backgroundColor = UIColor(white: 0.9, alpha: 1.0)
    serverAddressTextField.becomeFirstResponder()
    view.addSubview(serverAddressTextField)
    
    // TODO UINavigationBar font + color = same as elsewhere
    // http://stackoverflow.com/questions/8774531/change-uinavigationbar-font-properties
    // TODO Hide UINavigationBar when editing, keyboard button should be "Done"
    // http://stackoverflow.com/questions/10077155/how-to-add-done-button-to-the-keyboard

    let helpText = UITextView()
    helpText.scrollEnabled = false


typealias ServerAddressChangedCallback = (String?) -> ()

class SettingsViewController: UIViewController, UITextFieldDelegate {
  let settingsSavedCallback: ServerAddressChangedCallback
  let serverAddressTextField: UITextField
  
