[Scummvm-git-logs] scummvm master -> 481f849c5aee71b8aab47d4c60978aa3b1b44a21

criezy noreply at scummvm.org
Tue Jul 4 22:15:12 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
481f849c5a IOS7: Fix hiding keyboard in portrait mode when not in game


Commit: 481f849c5aee71b8aab47d4c60978aa3b1b44a21
    https://github.com/scummvm/scummvm/commit/481f849c5aee71b8aab47d4c60978aa3b1b44a21
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2023-07-04T23:14:49+01:00

Commit Message:
IOS7: Fix hiding keyboard in portrait mode when not in game

Changed paths:
    backends/platform/ios7/ios7_osys_video.mm


diff --git a/backends/platform/ios7/ios7_osys_video.mm b/backends/platform/ios7/ios7_osys_video.mm
index 6fe64e4c7fe..41f49aca099 100644
--- a/backends/platform/ios7/ios7_osys_video.mm
+++ b/backends/platform/ios7/ios7_osys_video.mm
@@ -150,9 +150,9 @@ void OSystem_iOS7::setShowKeyboard(bool show) {
 		});
 #endif
 	} else {
-		// Do not hide the keyboard in portrait mode as it is shown automatically and not
+		// If in game, do not hide the keyboard in portrait mode as it is shown automatically and not
 		// just when asked with the kFeatureVirtualKeyboard.
-		if (_screenOrientation == kScreenOrientationLandscape || _screenOrientation == kScreenOrientationFlippedLandscape) {
+		if (_screenOrientation == kScreenOrientationLandscape || _screenOrientation == kScreenOrientationFlippedLandscape || ![[iOS7AppDelegate iPhoneView] isInGame]) {
 			execute_on_main_thread(^ {
 				[[iOS7AppDelegate iPhoneView] hideKeyboard];
 			});




More information about the Scummvm-git-logs mailing list