mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-02 15:56:21 +00:00
Fix 3 finger taps causing the editing toolbar to appear
This commit is contained in:
parent
c623d40600
commit
015cfecdd6
@ -474,6 +474,16 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
|
|||||||
|
|
||||||
#endif
|
#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 {
|
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
|
||||||
// This method is called when the "Return" key is pressed.
|
// This method is called when the "Return" key is pressed.
|
||||||
LiSendKeyboardEvent(0x0d, KEY_ACTION_DOWN, 0);
|
LiSendKeyboardEvent(0x0d, KEY_ACTION_DOWN, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user