qml: android on-screen keyboard submit trigger accepted
What changed, and why it matters
This commit tweaks the Android on-screen keyboard behavior in Electrum's QML wallet search screen. It sets the Enter key to 'Done' and hides the 'Create Wallet' button while the user is typing a search. There is no clear security problem here; it appears to be a minor user-interface fix to prevent accidental wallet creation while searching.
No security action required. Treat as a normal UI/UX improvement.
Security signals we found
No security-relevant code paths modified
UI-only change to on-screen keyboard and button visibility
No input validation, authentication, or cryptographic logic changed
Evidence from the diff
The patch modifies electrum/gui/qml/components/Wallets.qml. It adds EnterKey.type: Qt.EnterKeyDone to the search TextField so the Android virtual keyboard shows a Done/Enter action, and it makes the ButtonContainer (containing ‘Create Wallet’ and presumably other buttons) visible only when the search field is empty. The onAccepted handler still loads a wallet if the typed name exactly matches an available wallet. The change is cosmetic/UX and does not alter authentication, cryptography, or data handling.
Changed components
electrum/gui/qml/components/Wallets.qmlInspect captured patch +3 / −1
diff --git a/electrum/gui/qml/components/Wallets.qml b/electrum/gui/qml/components/Wallets.qml
index 21f4626..e03b619 100644
--- a/electrum/gui/qml/components/Wallets.qml
+++ b/electrum/gui/qml/components/Wallets.qml
@@ -45,7 +45,7 @@ Pane {
placeholderText: qsTr('search')
inputMethodHints: Qt.ImhNoPredictiveText
-
+ EnterKey.type: Qt.EnterKeyDone
onAccepted: {
// load a wallet (e.g. a hidden wallet not shown in the list) when
// the search text exactly matches an available wallet name
@@ -155,6 +155,8 @@ Pane {
ButtonContainer {
Layout.fillWidth: true
+ visible: !searchEdit.text
+
FlatButton {
Layout.fillWidth: true
text: qsTr('Create Wallet')
Why this scored 18/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.