Ensure pressing enter a second time on a new line with a checkbox, erases the checkbox (if it had no text added to it)
This commit is contained in:
parent
f20ac56624
commit
7ed45c919c
2 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue