Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One-step undo in TextInput #7237

Open
Alspb opened this issue Nov 27, 2020 · 0 comments · May be fixed by #7745
Open

One-step undo in TextInput #7237

Alspb opened this issue Nov 27, 2020 · 0 comments · May be fixed by #7745
Labels
Component: Widgets kivy/uix, style.kv Priority: Medium Should be fixed for long-term health of project

Comments

@Alspb
Copy link
Contributor

Alspb commented Nov 27, 2020

Feature request
When I select text in TextInput and press Paste, new text is inserted instead of the selected one. But in fact this action consists of two steps: 1) delete selection, 2) insert text.
So if I press Undo, inserted text disappears, but the initially selected text still remain deleted. So I need to press Undo twice to get the initial text.
It would be great to press Undo only once to get back to the initial text.

Why it is important:

  • Most of (text) editors behave this way (the only exception I've found is Python's IDLE)
  • Text disappearance after first Undo may confuse the user
  • It's convenient for implementing new text format/edit features. E.g. "increase indent" function could be implemented by deleting old paragraph and inserting the new, indented, one. But currently this approach is unhandy, cause the user won't see his paragraph after the first Undo.
@matham matham added Component: Widgets kivy/uix, style.kv Priority: Medium Should be fixed for long-term health of project labels Dec 19, 2020
Alspb added a commit to Alspb/kivy that referenced this issue Jan 9, 2022
@Alspb Alspb linked a pull request Jan 9, 2022 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Widgets kivy/uix, style.kv Priority: Medium Should be fixed for long-term health of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants