<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Search Commands deleting contents in Writer when command applied to selected text"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=143817">143817</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Search Commands deleting contents in Writer when command applied to selected text
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.2.0.0.beta1+
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rafael.palma.lima@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=174197" name="attach_174197" title="Video showing the bug">attachment 174197</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=174197&action=edit" title="Video showing the bug">[details]</a></span>
Video showing the bug

I was running some tests while writing the help page for the "Search Commands"
hud and came across a bug when it is used in Writer (see attached video).

Steps to reproduce:
1) Open Writer and enter some text
2) Select the text
3) Choose a command to apply to the selected text (e.g. "Bold" or "Italic")
4) Press "Enter"
5) Instead of applying the command to the selected text, the text disappears as
though when you press Enter on any selected text

However, the expected outcome would be to have the command applied to the
selected text without deleting it.

The video was recorded in KDE but I tested this issue both in KDE and Windows
using the latest alpha on two different PCs.

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: b2130ad3fda841c68a0436fbddf29bcedede0af5
CPU threads: 16; OS: Linux 5.11; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time:
2021-08-09_13:03:07
Calc: threaded

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: eeeef98796df322d89912070c8e431c5f6d1283f
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: pt-BR (pt_BR); UI: pt-BR
Calc: threaded</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>