Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions IQKeyboardManager/IQKeyboardManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,13 @@ -(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveT
}
}

// (Issue #2109) Ignore Apple Pencil touches to prevent conflicts with floating keyboard on iPad
if (@available(iOS 9.1, *)) {
if (touch.type == UITouchTypePencil) {
return NO;
}
}

return YES;
}

Expand Down
7 changes: 7 additions & 0 deletions IQKeyboardManagerSwift/Resign/IQKeyboardResignHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ import IQTextInputViewNotification
return false
}

// (Issue #2109) Ignore Apple Pencil touches to prevent conflicts with floating keyboard on iPad
if #available(iOS 9.1, *) {
if touch.type == .pencil {
return false
}
}

return true
}
}