Fix 3 finger taps causing the editing toolbar to appear

This commit is contained in:
Cameron Gutman 2020-12-07 20:54:24 -06:00
parent c623d40600
commit 015cfecdd6

View File

@ -474,6 +474,16 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
#endif
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
if (@available(iOS 13.0, *)) {
// Disable the 3 finger tap gesure that triggers the copy/paste/undo toolbar on iOS 13+
return ![@"kbProductivity.threeFingerPinch" isEqualToString:gestureRecognizer.name];
}
else {
return YES;
}
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
// This method is called when the "Return" key is pressed.
LiSendKeyboardEvent(0x0d, KEY_ACTION_DOWN, 0);