iOS: Call hideKeyboard from a couple more places

This commit is contained in:
Henrik Rydgård 2024-05-31 21:51:27 +02:00
parent ba82360861
commit bd13653153
2 changed files with 4 additions and 2 deletions

View file

@ -424,6 +424,7 @@ void GLRenderLoop(IOSGLESContext *graphicsContext) {
- (void)uiStateChanged
{
[self setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
[self hideKeyboard];
}
- (UIView *)getView {

View file

@ -387,6 +387,8 @@ void VulkanRenderLoop(IOSVulkanContext *graphicsContext, CAMetalLayer *metalLaye
- (void)viewDidLoad {
[super viewDidLoad];
[self hideKeyboard];
[[DisplayManager shared] setupDisplayListener];
INFO_LOG(SYSTEM, "Metal viewDidLoad");
@ -414,8 +416,6 @@ void VulkanRenderLoop(IOSVulkanContext *graphicsContext, CAMetalLayer *metalLaye
locationHelper = [[LocationHelper alloc] init];
[locationHelper setDelegate:self];
[self hideKeyboard];
UIScreenEdgePanGestureRecognizer *mBackGestureRecognizer = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFrom:) ];
[mBackGestureRecognizer setEdges:UIRectEdgeLeft];
[[self view] addGestureRecognizer:mBackGestureRecognizer];
@ -500,6 +500,7 @@ extern float g_safeInsetBottom;
- (void)uiStateChanged
{
[self setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
[self hideKeyboard];
}
- (void)bindDefaultFBO