aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-04-06 15:33:43 +0200
committerfiaxh <git@lightrise.org>2020-04-06 15:33:43 +0200
commit5b2683dfa5241777d621866e4e0a0790766433c2 (patch)
tree55ee240204fd3d0bab614c4e6de5fa29bc7ccbdc /main/src
parentd091a6c3cd0812873bcdef53c51a2f60e12f2b8a (diff)
downloaddino-5b2683dfa5241777d621866e4e0a0790766433c2.tar.gz
dino-5b2683dfa5241777d621866e4e0a0790766433c2.zip
Last message correction fixes
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/conversation_view_controller.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/ui/conversation_view_controller.vala b/main/src/ui/conversation_view_controller.vala
index 31c7e612..dce9920e 100644
--- a/main/src/ui/conversation_view_controller.vala
+++ b/main/src/ui/conversation_view_controller.vala
@@ -151,6 +151,10 @@ public class ConversationViewController : Object {
}
private bool forward_key_press_to_chat_input(EventKey event) {
+ if (((Gtk.Window)view.get_toplevel()).get_focus() is TextView) {
+ return false;
+ }
+
// Don't forward / change focus on Control / Alt
if (event.keyval == Gdk.Key.Control_L || event.keyval == Gdk.Key.Control_R ||
event.keyval == Gdk.Key.Alt_L || event.keyval == Gdk.Key.Alt_R) {