From b91e90237a529c8b4b53da62aaf043e12120adb7 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 27 Jun 2024 23:22:49 +0300 Subject: [PATCH] fix: focus on text edit touch --- src/gui/views/views.rs | 1 + src/gui/views/wallets/wallet/messages.rs | 1 + src/gui/views/wallets/wallet/txs.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/src/gui/views/views.rs b/src/gui/views/views.rs index 1a6f8d9..80127fc 100644 --- a/src/gui/views/views.rs +++ b/src/gui/views/views.rs @@ -431,6 +431,7 @@ impl View { .ui(ui); // Show keyboard on click. if text_edit_resp.clicked() { + text_edit_resp.request_focus(); cb.show_keyboard(); } // Setup focus on input field. diff --git a/src/gui/views/wallets/wallet/messages.rs b/src/gui/views/wallets/wallet/messages.rs index 0ad9335..7da37f7 100644 --- a/src/gui/views/wallets/wallet/messages.rs +++ b/src/gui/views/wallets/wallet/messages.rs @@ -665,6 +665,7 @@ impl WalletMessages { .response; // Show soft keyboard on click. if response_empty && resp.clicked() { + resp.request_focus(); cb.show_keyboard(); } if response_empty && resp.has_focus() { diff --git a/src/gui/views/wallets/wallet/txs.rs b/src/gui/views/wallets/wallet/txs.rs index 17a6bec..55f05ba 100644 --- a/src/gui/views/wallets/wallet/txs.rs +++ b/src/gui/views/wallets/wallet/txs.rs @@ -855,6 +855,7 @@ impl WalletTransactions { .show(ui).response; // Show soft keyboard on click. if self.tx_info_finalize && resp.clicked() { + resp.request_focus(); cb.show_keyboard(); } if self.tx_info_finalize && resp.has_focus() {