mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 22:23:52 +00:00
Prevent gesture recognizers from eating our touch events. Fixes #375
This commit is contained in:
@@ -199,6 +199,13 @@
|
|||||||
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
|
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
|
||||||
|
// Disable all gesture recognizers to prevent them from eating our touches.
|
||||||
|
// This can happen on iOS 13 where the 3 finger tap gesture is taken over for
|
||||||
|
// displaying custom edit controls.
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
- (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);
|
||||||
|
|||||||
Reference in New Issue
Block a user