Skip to content

Fixes #2277. Changing TextField.Text does not clear text selection.#2278

Merged
tig merged 1 commit intogui-cs:developfrom
BDisp:clearallselection-text-fix_2277
Jan 5, 2023
Merged

Fixes #2277. Changing TextField.Text does not clear text selection.#2278
tig merged 1 commit intogui-cs:developfrom
BDisp:clearallselection-text-fix_2277

Conversation

@BDisp
Copy link
Copy Markdown
Collaborator

@BDisp BDisp commented Jan 5, 2023

Fixes #2277 - The selected text is handled internally by the TextField and any change to the Text property must also clear the selected text.

Pull Request checklist:

  • I've named my PR in the form of "Fixes #issue. Terse description."
  • My code follows the style guidelines of Terminal.Gui - if you use Visual Studio, hit CTRL-K-D to automatically reformat your files before committing.
  • My code follows the Terminal.Gui library design guidelines
  • I ran dotnet test before commit
  • I have made corresponding changes to the API documentation (using /// style comments)
  • My changes generate no new warnings
  • I have checked my code and corrected any poor grammar or misspellings
  • I conducted basic QA to assure all features are working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changing TextField.Text does not clear text selection. Resulting in ArgumentOutOfRange exception in some situations.

2 participants