From 68aee5f41415da068c041d1fea57b8615fc15de2 Mon Sep 17 00:00:00 2001 From: SkyzohKey Date: Wed, 6 Jul 2016 14:24:26 +0200 Subject: [PATCH] feat(chatview-ux): multiple UX improvements (#138) * Notifications when a contact goes `online` and `offline`. * Keyboard shortcut to select a messages selection: * `Ctrl+C`: Copy the messages selected into Clipboard. * `Ctrl+Shift+Q`: Quote the selection. * Keyboard shortcut for insering a new line: * `Shift+Return`: Insert a newline at the cursor position. * Some bug fixes. --- res/ui/chat-view.ui | 1 + src/ChatView.vala | 66 +++++++++++++++++++++++++---------- src/FriendListRow.vala | 18 ++++++++-- src/MainWindow.vala | 67 ++++++++++++++++++++++-------------- src/Notification.vala | 1 + src/ProfileChooser.vala | 3 ++ src/QuoteMessageListRow.vala | 7 +++- src/Wrapper.vala | 20 ++++++++--- 8 files changed, 131 insertions(+), 52 deletions(-) diff --git a/res/ui/chat-view.ui b/res/ui/chat-view.ui index 9a176de..a834a8f 100644 --- a/res/ui/chat-view.ui +++ b/res/ui/chat-view.ui @@ -1446,6 +1446,7 @@ True False True + GDK_KEY_PRESS_MASK | GDK_STRUCTURE_MASK 5