summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2017-03-24 21:59:03 +0100
committerAndy Shaw <andy.shaw@qt.io>2017-03-27 07:21:32 +0000
commit197b55c93966939af6443656fc0fff72c0d67dbc (patch)
treedd4087646b82218a65edc88ea4b754c81fd47b6b /src
parent1dd54b5647d33416c39fb41fdab560c815356951 (diff)
iOS: Hide the overlay when the keyboard is hidden
If the keyboard is hidden via the hide keyboard button then the edit menu should also hide with it. This ensures it behaves in the same way as native applications on iOS then. Change-Id: I4c714dd5c5cb27d8eaf310e2911dc38feb1cb74e Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/ios/qiostextinputoverlay.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiostextinputoverlay.mm b/src/plugins/platforms/ios/qiostextinputoverlay.mm
index 78f84729da..9b97ce17bb 100644
--- a/src/plugins/platforms/ios/qiostextinputoverlay.mm
+++ b/src/plugins/platforms/ios/qiostextinputoverlay.mm
@@ -116,6 +116,11 @@ static void executeBlockWithoutAnimation(Block block)
dispatch_async(dispatch_get_main_queue (), ^{ self.visible = YES; });
}
}];
+ [center addObserverForName:UIKeyboardDidHideNotification object:nil queue:nil
+ usingBlock:^(NSNotification *) {
+ self.visible = NO;
+ }];
+
}
return self;