Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Jul 2, 2017
2 parents da52872 + b2bb747 commit 162dda3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion telegram/app/qml/AccountSendMessage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Rectangle {
txt.focus = false;
if (privates.emojiItem)
privates.emojiItem.destroy();
if (privates.attachmentItem &&
privates.attachmentItem.isShown)
privates.attachmentItem.isShown = false;
}

function checkForSharedContent() {
Expand Down Expand Up @@ -299,6 +302,7 @@ Rectangle {
if (!telegramObject.connected || !Connectivity.online) return

if (!privates.emojiItem) {
smsg.focusOut();
privates.emojiItem = emoticons_component.createObject(send_msg)
privates.emojiItem.y = -privates.emojiItem.height
} else {
Expand Down Expand Up @@ -340,7 +344,9 @@ Rectangle {

Haptics.play()
if (!privates.attachmentItem) {
privates.attachmentItem = attach_panel_component.createObject(smsg)
var txtWasFocused = txt.focus;
smsg.focusOut();
privates.attachmentItem = attach_panel_component.createObject(smsg, { isShown: txtWasFocused })
}
privates.attachmentItem.isShown = true;
}
Expand Down
4 changes: 4 additions & 0 deletions telegram/app/qml/components/AttachPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ Item {
Rectangle {
anchors.fill: parent
color: "#aaffffff"

MouseArea {
anchors.fill: parent
}
}

InverseMouseArea {
Expand Down

0 comments on commit 162dda3

Please sign in to comment.