Skip to content

Linux + iPhone Continuity / iMessage / SMS

fix(gtk): sending a message loses focus on the input

Zack Bartel23d6b4117f2a
diff --git a/src/gtk/messages_view.cpp b/src/gtk/messages_view.cpp
index 70ff23e..13b656d 100644
--- a/src/gtk/messages_view.cpp
+++ b/src/gtk/messages_view.cpp
@@ -655,6 +655,7 @@ namespace tether::ui {
if (g_messages.sending) {
g_messages.sending = false;
update_composer_sensitivity();
+ focus_composer_soon();
set_status_main(_("No answer about that message; it may still have been sent."));
}
return G_SOURCE_REMOVE;
@@ -712,6 +713,7 @@ namespace tether::ui {
void on_send_result(const nlohmann::json& event) {
clear_sending();
update_composer_sensitivity();
+ focus_composer_soon();
if (event.value("success", false)) {
// Only cleared once the phone accepted it, so a failed send