[SCM] ktp-contact-applet packaging branch, master, updated. debian/16.04.1-1-7-g7532f5a
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Jun 24 07:39:28 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=75b2836
The following commit has been merged in the master branch:
commit 75b2836db07562b52070c225ffe382eedeebcd84
Author: Kai Uwe Broulik <kde at privat.broulik.de>
Date: Tue May 24 13:27:42 2016 +0200
[Quick Chat] Close chat window when pressing Escape
When pressing Escape, first clear the textfield, and if it's empty close the chat view
REVIEW: 128001
---
chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml b/chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml
index 0de4315..1485c4c 100644
--- a/chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml
+++ b/chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml
@@ -165,5 +165,13 @@ FocusScope {
view.model.sendNewMessage(text);
text = "";
}
+
+ Keys.onEscapePressed: {
+ if (length > 0) {
+ text = ""
+ } else {
+ chatWidget.closeRequested()
+ }
+ }
}
}
--
ktp-contact-applet packaging
More information about the pkg-kde-commits
mailing list