From 2522ff13fe45d62ae077546baa4de26eb8e1df1a Mon Sep 17 00:00:00 2001 From: dsc Date: Tue, 7 Jul 2020 15:33:54 +0200 Subject: [PATCH] Prevent textbox from turning active when window is not active. Fixes #2924 --- components/PasswordDialog.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index a572b874..61a85c69 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -63,7 +63,8 @@ Item { capsLockTextLabel.visible = oshelper.isCapsLock(); passwordInput1.reset(); passwordInput2.reset(); - passwordInput1.input.forceActiveFocus(); + if(appWindow.active) + passwordInput1.input.forceActiveFocus(); root.walletName = walletName ? walletName : "" errorTextLabel.text = errorText ? errorText : ""; leftPanel.enabled = false