mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -1198,6 +1198,16 @@ final class MediaEditorScreenComponent: Component {
|
||||
containerSize: CGSize(width: inputPanelAvailableWidth, height: inputPanelAvailableHeight)
|
||||
)
|
||||
|
||||
if self.inputPanelExternalState.isEditing {
|
||||
if let controller = self.environment?.controller() as? MediaEditorScreen {
|
||||
if controller.node.entitiesView.hasSelection {
|
||||
Queue.mainQueue().justDispatch {
|
||||
controller.node.entitiesView.selectEntity(nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if self.inputPanelExternalState.isEditing {
|
||||
if self.currentInputMode == .emoji || (inputHeight.isZero && keyboardWasHidden) {
|
||||
inputHeight = max(inputHeight, environment.deviceMetrics.standardInputHeight(inLandscape: false))
|
||||
|
||||
Reference in New Issue
Block a user