Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Actually, let's not check for currentResponder. Leave it to the subcl…
Browse files Browse the repository at this point in the history
…ass to handle it.
  • Loading branch information
Ignacio Romero Zurbuchen committed Apr 18, 2016
1 parent 875fae3 commit 6f2e64b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Source/SLKTextViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1326,11 +1326,6 @@ - (void)slk_willShowOrHideKeyboard:(NSNotification *)notification

UIResponder *currentResponder = [UIResponder slk_currentFirstResponder];

// Detects the current first responder. Ignores these notifications when no valid responder is detected.
if (!currentResponder) {
return;
}

// Skips if it's not the expected textView and shouldn't force adjustment of the text input bar.
// This will also dismiss the text input bar if it's visible, and exit auto-completion mode if enabled.
if (![currentResponder isEqual:self.textView] && ![self forceTextInputbarAdjustmentForResponder:currentResponder]) {
Expand Down

0 comments on commit 6f2e64b

Please sign in to comment.