             self.textInputbar.textView.inputView = nil
             self.textInputbar.textView.refreshFirstResponder()
             self.textInputbar.textView.refreshInputViews()
+            self.textInputbar.textView.becomeFirstResponder()
             
             self.stickersButton.setImage(UIImage.bundled("sticker_button"), forState: UIControlState.Normal)
             
             self.stickersOpen = false
             
+            self.textInputbar.layoutIfNeeded()
+            self.view.layoutIfNeeded()
+            
         }
         
     }

                self.audioButton.frame = textView.frame
                self.audioButton.hidden = false;
                
                
            } else {
                self.audioButton.hidden = true;

    
    func changeKeyboard() {
        
        
        if self.stickersOpen == false {
            self.stickersView.loadStickers()
            
            //self.textInputbar.textView.becomeFirstResponder()
            self.textInputbar.textView.inputView = self.stickersView
            self.textInputbar.textView.refreshFirstResponder()
            self.textInputbar.textView.refreshInputViews()
            self.textInputbar.textView.becomeFirstResponder()
            
            self.stickersButton.setImage(UIImage.bundled("keyboard_button"), forState: UIControlState.Normal)
            
            self.stickersOpen = true
            
            self.textInputbar.layoutIfNeeded()
            self.view.layoutIfNeeded()
            
            
        } else {
