Ensure pressing enter a second time on a new line with a checkbox, erases the checkbox (if it had no text added to it)
Some checks failed
Lint / test (push) Waiting to run
Trivy / test (push) Waiting to run
CI / test (push) Has been cancelled

This commit is contained in:
Miguel Jacq 2025-11-30 13:09:18 +11:00
parent f20ac56624
commit 7ed45c919c
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
# 0.5.4
* Ensure pressing enter a second time on a new line with a checkbox, erases the checkbox (if it had no text added to it)
# 0.5.3 # 0.5.3
* Prevent triple-click select from selecting the list item (e.g checkbox, bullet) * Prevent triple-click select from selecting the list item (e.g checkbox, bullet)

View file

@ -1194,7 +1194,7 @@ class MarkdownEditor(QTextEdit):
return return
else: else:
# Not empty - continue the list # Not empty - continue the list
self._last_enter_was_empty = False self._last_enter_was_empty = True
# Insert newline and continue the list # Insert newline and continue the list
super().keyPressEvent(event) super().keyPressEvent(event)