mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
iPad trackpad and key shortcuts improvements
This commit is contained in:
@@ -83,6 +83,18 @@ final class AlertControllerNode: ASDisplayNode {
|
||||
self.rightDimView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(self.dimmingNodeTapGesture(_:))))
|
||||
}
|
||||
|
||||
func performHighlightedAction() {
|
||||
self.contentNode.performHighlightedAction()
|
||||
}
|
||||
|
||||
func decreaseHighlightedIndex() {
|
||||
self.contentNode.decreaseHighlightedIndex()
|
||||
}
|
||||
|
||||
func increaseHighlightedIndex() {
|
||||
self.contentNode.increaseHighlightedIndex()
|
||||
}
|
||||
|
||||
func updateTheme(_ theme: AlertControllerTheme) {
|
||||
if let effectView = self.effectNode.view as? UIVisualEffectView {
|
||||
effectView.effect = UIBlurEffect(style: theme.backgroundType == .light ? .light : .dark)
|
||||
|
||||
Reference in New Issue
Block a user