fix: focus on text edit touch

This commit is contained in:
ardocrat 2024-06-27 23:22:49 +03:00
parent 7fb19619cf
commit b91e90237a
3 changed files with 3 additions and 0 deletions

View file

@ -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.

View file

@ -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() {

View file

@ -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() {