mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Fix reset text area with a preedit text message
This commit is contained in:
parent
ae396cb135
commit
c6f562b5e6
1 changed files with 3 additions and 2 deletions
|
@ -257,6 +257,7 @@ Item
|
|||
}
|
||||
function reset ()
|
||||
{
|
||||
msgField.text = ""
|
||||
Qt.inputMethod.reset()
|
||||
}
|
||||
}
|
||||
|
@ -362,13 +363,13 @@ Item
|
|||
{
|
||||
if (emojiPicker.state == "EMOJI_SHOWN") emojiPicker.state = "EMOJI_HIDDEN"
|
||||
|
||||
var msgText = getCompleteMessageText()
|
||||
msgField.text = getCompleteMessageText () + " " // Needed to prevent pre edit text problems
|
||||
var msgText = msgField.text
|
||||
|
||||
var jsonData = {"chat_id":chatView.chatId, "msg":msgText}
|
||||
rsApi.request( "/chat/send_message", JSON.stringify(jsonData),
|
||||
function(par)
|
||||
{
|
||||
msgField.text = ""
|
||||
msgField.reset();
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue