Skip to content

Commit

Permalink
Discard all keyboard did show events
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarne Mogstad committed Sep 18, 2015
1 parent c3bd503 commit e65bacf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Echo/controllers/input_accessory_controller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public class InputAccessoryController: NSObject {

private func validateKeyboardNotification(keyboardChange: KeyboardChange) -> Bool {
if let delegate = self.delegate as? InputAccessoryControllerResponderDelegate {
return (self.textView.didNotResignFirstResponder == false)
return keyboardChange.type != .didShow
} else {
return (
keyboardChange.belongsTo(self.textView) &&
Expand Down

0 comments on commit e65bacf

Please sign in to comment.