focus: fix chat
The ring ID label behind was receiving click events instead of the chat field.
This fix moves the ring ID label to prevent interference with on-top ui,
and gives focus to the chat field automatically when uncollapsing the chat
view.
Issue: #78879
Change-Id: Ib46dd3054978f295d8b63c8f28a056533e027145
diff --git a/src/ChatVC.mm b/src/ChatVC.mm
index d36bfa9..baf0560 100644
--- a/src/ChatVC.mm
+++ b/src/ChatVC.mm
@@ -84,6 +84,7 @@
[chatView setDefaultParagraphStyle:paragraphStyle];
}
+
- (void) setupChat
{
QObject::disconnect(mediaHolder.newMediaAdded);
@@ -165,6 +166,11 @@
}
+- (void) takeFocus
+{
+ [self.view.window makeFirstResponder:self.messageField];
+}
+
- (IBAction)sendMessage:(id)sender {
QModelIndex callIdx = CallModel::instance()->selectionModel()->currentIndex();