From 5949173ba29d2d2825a82b1178bbfbee321c7759 Mon Sep 17 00:00:00 2001
From: tastytea <tastytea@tastytea.de>
Date: Sun, 6 Mar 2022 14:48:31 +0100
Subject: [PATCH] Add function to force focus on InputDialog input field

# Previous commits:
#   9482ac4e Allow explicit selection of SSO method
#   ab05e2d8 Mobile message input (#962)
#   12a6da01 If you replace the txn id, replace a string the length of the txn id...
#   df6a5aab Fix clicking on images in replies
---
 resources/qml/dialogs/InputDialog.qml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/resources/qml/dialogs/InputDialog.qml b/resources/qml/dialogs/InputDialog.qml
index cf1474dc6..a674c3fb6 100644
--- a/resources/qml/dialogs/InputDialog.qml
+++ b/resources/qml/dialogs/InputDialog.qml
@@ -21,6 +21,10 @@ ApplicationWindow {
     width: 350
     height: fontMetrics.lineSpacing * 7
 
+    function forceActiveFocus() {
+        statusInput.forceActiveFocus();
+    }
+
     Shortcut {
         sequence: StandardKey.Cancel
         onActivated: dbb.rejected()
-- 
GitLab