[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [spacebar] app/package/contents/ui: [app] Insert the emoji into the message when selected and close
From: Martin Klapetek <mklapetek () kde ! org>
Date: 2016-05-14 18:35:25
Message-ID: E1b1ePN-0005D3-BG () scm ! kde ! org
[Download RAW message or body]
Git commit f00eb4a7c25111f54065882371fa6329a7c4359d by Martin Klapetek.
Committed on 14/05/2016 at 18:35.
Pushed by mklapetek into branch 'master'.
[app] Insert the emoji into the message when selected and close the popup
M +12 -0 app/package/contents/ui/ConversationPage.qml
http://commits.kde.org/spacebar/f00eb4a7c25111f54065882371fa6329a7c4359d
diff --git a/app/package/contents/ui/ConversationPage.qml b/app/package/contents/ui/ConversationPage.qml
index b4b3c49..b5fa9b8 100644
--- a/app/package/contents/ui/ConversationPage.qml
+++ b/app/package/contents/ui/ConversationPage.qml
@@ -36,6 +36,10 @@ Kirigami.Page {
property QtObject conversation
property string pageName: "conversationPage"
+ signal insertEmoji(var emoji);
+
+ signal focusTextInput();
+
Kirigami.OverlaySheet {
id: emojisRect
z: 300
@@ -263,6 +267,14 @@ Kirigami.Page {
}
}
+ Connections {
+ target: conversationPage
+ onInsertEmoji: {
+ messageTextField.insert(messageTextField.cursorPosition, emoji + " ");
+ }
+ onFocusTextInput: {
+ messageTextField.forceActiveFocus();
+ }
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic