mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix reset text area with a preedit text message
This commit is contained in:
parent
ae396cb135
commit
c6f562b5e6
@ -257,6 +257,7 @@ Item
|
|||||||
}
|
}
|
||||||
function reset ()
|
function reset ()
|
||||||
{
|
{
|
||||||
|
msgField.text = ""
|
||||||
Qt.inputMethod.reset()
|
Qt.inputMethod.reset()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -362,13 +363,13 @@ Item
|
|||||||
{
|
{
|
||||||
if (emojiPicker.state == "EMOJI_SHOWN") emojiPicker.state = "EMOJI_HIDDEN"
|
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}
|
var jsonData = {"chat_id":chatView.chatId, "msg":msgText}
|
||||||
rsApi.request( "/chat/send_message", JSON.stringify(jsonData),
|
rsApi.request( "/chat/send_message", JSON.stringify(jsonData),
|
||||||
function(par)
|
function(par)
|
||||||
{
|
{
|
||||||
msgField.text = ""
|
|
||||||
msgField.reset();
|
msgField.reset();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user