diff --git a/Packages/VNCUI/Sources/VNCUI/Session/FramebufferUIView.swift b/Packages/VNCUI/Sources/VNCUI/Session/FramebufferUIView.swift index fd49985..bfa0afc 100644 --- a/Packages/VNCUI/Sources/VNCUI/Session/FramebufferUIView.swift +++ b/Packages/VNCUI/Sources/VNCUI/Session/FramebufferUIView.swift @@ -7,6 +7,23 @@ final class FramebufferUIView: UIView, UIGestureRecognizerDelegate, UIPointerInteractionDelegate, UIKeyInput { + // MARK: - UITextInputTraits — disable every kind of autocomplete, so + // each keystroke produces exactly one insertText() call and nothing + // is swallowed by the suggestion/predictive engine. + @objc var autocorrectionType: UITextAutocorrectionType = .no + @objc var autocapitalizationType: UITextAutocapitalizationType = .none + @objc var spellCheckingType: UITextSpellCheckingType = .no + @objc var smartQuotesType: UITextSmartQuotesType = .no + @objc var smartDashesType: UITextSmartDashesType = .no + @objc var smartInsertDeleteType: UITextSmartInsertDeleteType = .no + @objc var keyboardType: UIKeyboardType = .asciiCapable + @objc var keyboardAppearance: UIKeyboardAppearance = .dark + @objc var returnKeyType: UIReturnKeyType = .default + @objc var enablesReturnKeyAutomatically: Bool = false + @objc var isSecureTextEntry: Bool = false + @objc var passwordRules: UITextInputPasswordRules? + @objc var textContentType: UITextContentType? = UITextContentType(rawValue: "") + weak var controller: SessionController? var inputMode: InputMode = .touch var selectedScreen: RemoteScreen? {