IOS7: Fix hiding keyboard in portrait mode when not in game
This commit is contained in:
parent
aa2abc41b3
commit
481f849c5a
1 changed files with 2 additions and 2 deletions
|
@ -150,9 +150,9 @@ void OSystem_iOS7::setShowKeyboard(bool show) {
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} 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.
|
// just when asked with the kFeatureVirtualKeyboard.
|
||||||
if (_screenOrientation == kScreenOrientationLandscape || _screenOrientation == kScreenOrientationFlippedLandscape) {
|
if (_screenOrientation == kScreenOrientationLandscape || _screenOrientation == kScreenOrientationFlippedLandscape || ![[iOS7AppDelegate iPhoneView] isInGame]) {
|
||||||
execute_on_main_thread(^ {
|
execute_on_main_thread(^ {
|
||||||
[[iOS7AppDelegate iPhoneView] hideKeyboard];
|
[[iOS7AppDelegate iPhoneView] hideKeyboard];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue