Various improvements

This commit is contained in:
Ilya Laktyushin
2025-09-28 20:04:45 +04:00
parent a7ef03e321
commit c7f607865a
19 changed files with 189 additions and 103 deletions

View File

@@ -896,8 +896,9 @@ public final class MessageInputPanelComponent: Component {
}
},
isOneLineWhenUnfocused: component.style == .media,
emptyLineHandling: component.style == .glass ? .notAllowed : .allowed,
formatMenuAvailability: component.isFormattingLocked ? .locked : .available(TextFieldComponent.FormatMenuAvailability.Action.all),
returnKeyType: component.style == .glass ? .done : .default,
returnKeyType: component.style == .glass ? .send : .default,
lockedFormatAction: {
component.presentTextFormattingTooltip?()
},