EditText implement copy/paste shortcuts (clipboard feat)
As an user, I want to copy and paste text in EditText control. This will make the interface faster and more convenient for repetitive tasks in the game/app.
@stride3d/stride-contributors Would you consider funding and reserving a US$200 bounty for a Windows desktop implementation of #3499 under the published bounty program?
I reviewed the current code at 6d39685048765f1d55336b51440453e67e0e76ea. EditText.Direct.cs handles navigation and deletion but has no copy/paste shortcut handling. EditText.SelectedText already provides the insertion/replacement path, so that behavior can be reused.
The existing EditTextTests.TestBasicInvalidations test passes locally on Windows at that revision (one selected test, zero failures). This verifies the baseline test path; the proposed clipboard feature has not been implemented or tested yet.
Proposed scope:
- Ctrl+C copies the selected text; an empty selection leaves the clipboard unchanged. Password fields must not expose their contents through copying.
- Ctrl+V inserts at the caret or replaces the selection, using the existing text filtering and length limits. Unavailable/non-text clipboard data is harmless, and a handled shortcut must not also insert a literal C or V.
- Cover both Windows desktop input backends (WinForms and SDL), reusing the existing
Stride.Graphics.SDL.Application.Clipboardwrapper for SDL and the Windows clipboard facility for WinForms. Keep platform access outside the editing logic so the command behavior can be tested deterministically. - Add focused regression tests for selection/caret behavior, modifiers, password protection, filtering, length limits and unavailable clipboard data; verify actual clipboard round trips on Windows and document the shortcuts.
Please confirm whether that Windows scope is useful as an initial contribution, the bounty amount, and whether someone is already implementing it. Linux/macOS desktop shortcuts and native mobile controls would need a separately agreed validation scope.
I would use the official PayPal payout process and the published 60% after merge / 40% at the next official release split. The work would use AI assistance. This is a funding/application request; I will start substantial implementation after scope and reservation are confirmed.
Contact: Ariyachan in this thread; an email contact can be supplied privately if required.