From b38c9444849e025264bff233f0865cc5678b1305 Mon Sep 17 00:00:00 2001 From: Angela Mazzurco Date: Sat, 1 Jul 2017 17:02:32 +0200 Subject: [PATCH] Solve bad name reference error --- retroshare-qml-app/src/components/emoji/EmojiPicker.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/retroshare-qml-app/src/components/emoji/EmojiPicker.qml b/retroshare-qml-app/src/components/emoji/EmojiPicker.qml index 00f61e115..58c23008d 100644 --- a/retroshare-qml-app/src/components/emoji/EmojiPicker.qml +++ b/retroshare-qml-app/src/components/emoji/EmojiPicker.qml @@ -55,11 +55,11 @@ Rectangle { //checks if the previous character is an Emoji and adds a ' ' if that's the case //this is necessary, because Emoji use a bigger font-size, and that font-size is kept using without a ' ' function keyPressedHandler(event) { - var testStr = txtIn.getText(txtIn.length-2, txtIn.length) + var testStr = textArea.getText(textArea.length-2, textArea.length) var ptrn = new RegExp("[\uD800-\uDBFF][\uDC00-\uDFFF]") if ((event.key !== Qt.Key_Backspace) && (ptrn.test(testStr))) { - txtIn.text += " " - txtIn.cursorPosition = txtIn.length + textArea.text += " " + textArea.cursorPosition = textArea.length } }