fix: typing in `<` in the input box deletes everything afterwards in
Fixes: #2267
This commit is contained in:
parent
0774c4d5bf
commit
341d3ebcf7
|
@ -319,8 +319,10 @@ Rectangle {
|
|||
// TODO use the new formatInputMessage function instead
|
||||
const plainText = getPlainText()
|
||||
const newText = parseBackText(plainText)
|
||||
const finalText = newText.replace("<", "<")
|
||||
|
||||
messageInputField.remove(0, messageInputField.length)
|
||||
insertInTextInput(0, newText)
|
||||
insertInTextInput(0, finalText)
|
||||
} else {
|
||||
if (event.key === Qt.Key_Asterisk ||
|
||||
event.key === Qt.Key_QuoteLeft ||
|
||||
|
|
Loading…
Reference in New Issue