Codename One Adds Native-Free Text Editing Path for Lightweight UI Components

Pull request #5386 introduces a pure Codename One text-editing mode, allowing EditField, RichTextArea, and CodeEditor to handle documents, selection, and rendering entirely within the lightweight UI layer. Previously, Codename One relied on a native platform overlay placed over components during editing, which caused minor visual glitches and blocked features like syntax highlighting, rich formatting, and custom selection models. The new TextInputClient contract defines operations such as committing text, managing marked composition ranges, handling virtual-keyboard deletions, and responding to navigation or clipboard commands. A new EditField component serves as the opt-in plain-text field for developers who want editing and painting to remain inside Codename One, while existing TextField and TextArea components are unchanged. The update also enhances clipboard support through a ClipboardContent API that allows multiple MIME-type representations, including plain text, HTML, Markdown, RTF, and image formats, with backward compatibility for existing plain-text clipboard code.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in