<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 - EDITING Undo auto-capitalization after tab inserts both capitalized and uncapitalized"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138768">138768</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>EDITING Undo auto-capitalization after tab inserts both capitalized and uncapitalized
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.1.5.2 release
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux (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>Impress
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>felix+libreoffice@fwdekker.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Impress automatically capitalizes the first character of a sentence after
pressing the Tab button. Undoing this by pressing Ctrl+Z causes weird
behaviour: After the first undo the tab is removed (good), but after the second
undo the lowercase character is inserted in front of the uppercase one (bad).
Only after the third undo is the uppercase character removed.

Steps to Reproduce:
1. Create a new presentation.
2. Select a text input in one of the slides.
3. Write "sentence" (lowercase) and then press Tab. You now have "Sentence ".
4. Undo (Ctrl+Z) to remove the Tab character. You now have "Sentence".
5. Undo (Ctrl+Z) to undo the auto-capitalization.

Actual Results:
The second undo changes "Sentence" to "sSentence".

(After an (optional) third undo you have "sentence".)

Expected Results:
The second undo should change "Sentence" to "sentence". The third undo should
not be necessary.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The issue does not occur when pressing Space or Enter instead of Tab.

The issue does not occur in Writer.</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>