gnome: auto change input focus to chat entry
When opening the chat view, automatically change the
input focus to the chat entry.
Refs #76101
Change-Id: Iba31701a5241e638c2e8b115393de8feb3adbc9a
diff --git a/src/currentcallview.cpp b/src/currentcallview.cpp
index 8b6e6dd..e37d3ad 100644
--- a/src/currentcallview.cpp
+++ b/src/currentcallview.cpp
@@ -126,6 +126,8 @@
if (gtk_toggle_button_get_active(togglebutton)) {
/* create an outgoing media to bring up chat history, if any */
priv->call->addOutgoingMedia<Media::Text>();
+ /* change focus to the chat entry */
+ gtk_widget_grab_focus(priv->entry_chat_input);
}
}