question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RichEditBox] Cannot delete selected text

See original GitHub issue

Describe the bug TextCommandBarFlyout “blocks” deletion of selected text in RichEditBox

Steps to reproduce the bug

  1. Open Xaml Control Gallery and open RichEditBox page (xamlcontrolsgallery://item/RichEditBox)
  2. Enter text in the RichEditBox
  3. Select text and see how the TextCommandBarFlyout open automatically
  4. Press “del” or “backspace” button on keyboard

Expected behavior Selected text disappears

Actual behavior Nothing happens.

Comments

  • After dismissing the TextCommandBarFlyout (e.g. by mouse movement), you CAN delete the text using the “del” or “backspace” keys
  • The bug does not occur when using ControlsResourcesVersion="Version1" even though a (different!) TextCommandBarFlyout is shown there as well

Screenshots image

Version Info Microsoft.UI.Xaml 2.6.0]

Windows app type:

UWP Win32
Yes
Windows version Saw the problem?
Insider Build (xxxxx)
May 2021 Update (19043) Yes
October 2020 Update (19042)
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
tipacommented, Feb 20, 2022

I’m sorry if my posts came over as criticism towards the WinUI team, that was not intended. I am disappointed by Microsoft for not increasing resources and priority for WinUI. It feels like very slow progress was made in the last few months.

0reactions
tipacommented, Jun 13, 2022

From what I can tell, this issue has been finally fixed by this PR. Thank you so much @llongley! This bug was so annoying and I am so glad I found this to be fixed in the preview version on NuGet. I hope a stable NuGet version of 2.8.0 will follow soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

After adding text can't remove with backspace
The reason you can't delete it is because as soon as you press Backspace , your text ends with '(' again, and you...
Read more >
how can i delete selected text from a richtextbox?
Text = "Your Text"; // To clear and replace selected text. This is my first reply. I'm starting to learn WPF in place...
Read more >
When I try to delete selected text by using BACKSPACE in ...
When I try to delete selected text by using BACKSPACE in Microsoft Word, it doesn't work. From the File tab select the Options...
Read more >
My delete key will not delete selected text
It no longer deletes selected text--only functions properly as backspaced and one at a time character delete. How can I fix that?
Read more >
Cannot Autocomplete again After deleting text ...
I have this problem with my Autocompletion program in VB.NET where you cannot delete text eazily after Autocompletion is done because once ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found