bevy_text::input module with no undo#20763
bevy_text::input module with no undo#20763Zeophlite wants to merge 99 commits intobevyengine:mainfrom
bevy_text::input module with no undo#20763Conversation
…pport text editing.
* `TextInputAction` -> `TextEdit` * `TextInputActions` -> `TextEdits`
…he cursor. If there is a selection, overwrites it instead.
…d automatically with the `TextInputValue `text
…he associated types and systems.
…ts to `InvalidEdit` and `TextChanged` respectively.
Co-authored-by: Tim <JustTheCoolDude@gmail.com>
Co-authored-by: Tim <JustTheCoolDude@gmail.com>
Co-authored-by: Tim <JustTheCoolDude@gmail.com>
mockersf
left a comment
There was a problem hiding this comment.
I've played a bit with this PR and how to use it, and I think it introduces too many things at once, and some that doesn't interact well together.
I would prefer a simpler PR that would introduce a component that holds a cosmic buffer, and how to interact with it. Making it smaller would also improve the code organisation.
I don't think this should be merged in this state.
@mockersf Could you expand on this point? |
|
I've taken the time to split up |
|
This version has removed clipboard, filtering, masking, they will be re-added as separate PRs |
|
One element I would personally consider critical for an example is handling text input on a mobile browser, i.e. by popping open an on-screen keyboard when a text input is focused. This definitely feels like it belongs more in the eventual widget code, but it also would feel right to have that kind of support within Bevy (experimentally?) so work wouldn't need to be duplicated across many projects. |
Objective
bevy_text::inputmodule #20336 without undo/redo (see Temporarily upstream undo_2 #20489 to upstream theundo_2library)Testing