aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2026-01-17 03:48:26 +0000
committertobtoht <tob@featherwallet.org>2026-01-17 03:48:26 +0000
commitc5e0680bdf6914734bbee2427d6915f63f1bf532 (patch)
treedb45f3d9f6da863c69a12d43d5656163339e4e21
parente984c28fafc224df0f3d9e24a3ed942af5cf929f (diff)
parent2f3e9abe14a7e72027e13b566c06a0aa436cdaa6 (diff)
downloadmonzero-gui-c5e0680bdf6914734bbee2427d6915f63f1bf532.tar.gz
monzero-gui-c5e0680bdf6914734bbee2427d6915f63f1bf532.tar.xz
monzero-gui-c5e0680bdf6914734bbee2427d6915f63f1bf532.zip
Merge pull request #4549
2f3e9ab PasswordDialog: fix lack of focus on window change (selsta)
-rw-r--r--components/PasswordDialog.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml
index 77b16658..f369593b 100644
--- a/components/PasswordDialog.qml
+++ b/components/PasswordDialog.qml
@@ -38,7 +38,7 @@ import "." as MoneroComponents
import "effects/" as MoneroEffects
import "../js/Utils.js" as Utils
-Item {
+FocusScope {
id: root
visible: false
@@ -65,8 +65,6 @@ Item {
capsLockTextLabel.visible = oshelper.isCapsLock();
passwordInput1.reset();
passwordInput2.reset();
- if(!appWindow.currentWallet || appWindow.active)
- passwordInput1.input.forceActiveFocus();
root.walletName = walletName ? walletName : ""
errorTextLabel.text = errorText ? errorText : "";
leftPanel.enabled = false
@@ -76,6 +74,7 @@ Item {
root.visible = true;
appWindow.hideBalanceForced = true;
appWindow.updateBalance();
+ Qt.callLater(() => passwordInput1.input.forceActiveFocus())
}
function open(walletName, errorText, okButtonText, okButtonIcon, backgroundSyncOn) {
@@ -214,6 +213,7 @@ Item {
MoneroComponents.LineEdit {
id: passwordInput1
password: true
+ input.focus: root.visible && (appWindow.active || Qt.application.state === Qt.ApplicationActive)
Layout.topMargin: 6
Layout.fillWidth: true
KeyNavigation.tab: {