aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/ios7/ios7_video.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/platform/ios7/ios7_video.mm b/backends/platform/ios7/ios7_video.mm
index ee558a16c1..7ce19f1f4b 100644
--- a/backends/platform/ios7/ios7_video.mm
+++ b/backends/platform/ios7/ios7_video.mm
@@ -870,6 +870,13 @@ uint getSizeNextPOT(uint size) {
- (void)deviceOrientationChanged:(UIDeviceOrientation)orientation {
[self addEvent:InternalEvent(kInputOrientationChanged, orientation, 0)];
+
+ BOOL isLandscape = (self.bounds.size.width > self.bounds.size.height);
+ if (isLandscape) {
+ [_keyboardView hideKeyboard];
+ } else {
+ [_keyboardView showKeyboard];
+ }
}
- (UITouch *)secondTouchOtherTouchThan:(UITouch *)touch in:(NSSet *)set {