mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Disable interactive keyboard dismissal in media caption screen
This commit is contained in:
parent
5f8bd57ca2
commit
86e27f0706
@ -29,6 +29,8 @@ typedef enum {
|
||||
|
||||
@protocol LegacyComponentsGlobalsProvider <NSObject>
|
||||
|
||||
- (void)makeViewDisableInteractiveKeyboardGestureRecognizer:(UIView *)view;
|
||||
|
||||
- (TGLocalization *)effectiveLocalization;
|
||||
- (void)log:(NSString *)string;
|
||||
- (NSArray<UIWindow *> *)applicationWindows;
|
||||
|
@ -108,6 +108,8 @@
|
||||
self = [super initWithFrame:CGRectZero];
|
||||
if (self != nil)
|
||||
{
|
||||
[[LegacyComponentsGlobals provider] makeViewDisableInteractiveKeyboardGestureRecognizer:self];
|
||||
|
||||
_actionHandle = [[ASHandle alloc] initWithDelegate:self releaseOnMainThread:true];
|
||||
|
||||
_context = context;
|
||||
|
@ -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) {
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user