 // MARK: Camera / Image Picker
 
     public func addImageAction() {
+        stopEditing()
         let alert = UIImagePickerController.alertControllerForImagePicker(openImagePicker)
         alert.map { self.delegate?.omnibarPresentController($0) }
     }


    public func keyboardWillHide() {
        self.setNeedsLayout()
        editingCanceled()
        UIView.animateWithDuration(Keyboard.shared().duration,
            delay: 0.0,
            options: Keyboard.shared().options,

        regionsTableView.registerClass(OmnibarErrorCell.self, forCellReuseIdentifier: OmnibarErrorCell.reuseIdentifier())

        textScrollView.delegate = self
        let tapGesture = UITapGestureRecognizer(target: self, action: Selector("stopEditing"))
        textScrollView.addGestureRecognizer(tapGesture)
        let swipeGesture = UISwipeGestureRecognizer(target: self, action: Selector("stopEditing"))
        swipeGesture.direction = .Down
        textScrollView.addGestureRecognizer(swipeGesture)
        textScrollView.clipsToBounds = true
        textContainer.backgroundColor = UIColor.whiteColor()

