Disable interactive keyboard dismissal in media caption screen

This commit is contained in:
Ilya Laktyushin 2021-03-16 12:39:51 +04:00
parent 5f8bd57ca2
commit 86e27f0706
3 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,8 @@ typedef enum {
@protocol LegacyComponentsGlobalsProvider <NSObject>
- (void)makeViewDisableInteractiveKeyboardGestureRecognizer:(UIView *)view;
- (TGLocalization *)effectiveLocalization;
- (void)log:(NSString *)string;
- (NSArray<UIWindow *> *)applicationWindows;

View File

@ -108,6 +108,8 @@
self = [super initWithFrame:CGRectZero];
if (self != nil)
{
[[LegacyComponentsGlobals provider] makeViewDisableInteractiveKeyboardGestureRecognizer:self];
_actionHandle = [[ASHandle alloc] initWithDelegate:self releaseOnMainThread:true];
_context = context;

View File

@ -174,6 +174,10 @@ private final class LegacyComponentsGlobalsProviderImpl: NSObject, LegacyCompone
legacyOpenUrl(url)
}
public func makeViewDisableInteractiveKeyboardGestureRecognizer(_ view: UIView!) {
view.disablesInteractiveKeyboardGestureRecognizer = true
}
public func disableUserInteraction(for timeInterval: TimeInterval) {
}