From 01d2a937ca65ed04271be4e9e7d451cdddbdf402 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Mon, 17 Jun 2024 00:20:39 +0800 Subject: [PATCH] update annotation --- Limelight/Input/StreamView.m | 2 ++ Limelight/ViewControllers/StreamFrameViewController.m | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Limelight/Input/StreamView.m b/Limelight/Input/StreamView.m index 7945f69a..3e385b1b 100644 --- a/Limelight/Input/StreamView.m +++ b/Limelight/Input/StreamView.m @@ -161,6 +161,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5; [self becomeFirstResponder]; } +// this method also deals with lifting streamview for local keyboard - (void)keyboardWillShow:(NSNotification *)notification{ if(settings.liftStreamViewForKeyboard && !isInputingText){ NSDictionary *userInfo = notification.userInfo; @@ -178,6 +179,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5; // NSLog(@"keyboard will show"); } +// this method also deals with recovering streamview when local keyboard is turned off - (void)keyboardWillHide:(NSNotification *)notification{ if(isInputingText){ diff --git a/Limelight/ViewControllers/StreamFrameViewController.m b/Limelight/ViewControllers/StreamFrameViewController.m index b481ed47..b578cbda 100644 --- a/Limelight/ViewControllers/StreamFrameViewController.m +++ b/Limelight/ViewControllers/StreamFrameViewController.m @@ -179,7 +179,7 @@ #if 0 // FIXME: This doesn't work reliably on iPad for some reason. Showing and hiding the keyboard // several times in a row will not correctly restore the state of the UIScrollView. - // I add this notification to the StreamView, works well on ipad mini6. + // TrueZhuanJia: Already fixed by my refactored keyboard toggle gesture recognizer, and the keyboardWillShow/Hide method in StreamView.m [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(keyboardWillShow:) name: UIKeyboardWillShowNotification