notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 55b59c982afe15f7209775aff0e8f24443115b48
parent 4c867f9fc245065793ee96b88498de5aa32ff315
Author: kernelkind <kernelkind@gmail.com>
Date:   Thu,  2 Oct 2025 16:37:22 -0400

fix: WalletView don't request keyboard focus if narrow

on android it kept popping up the keyboard even when i close it

Signed-off-by: kernelkind <kernelkind@gmail.com>

Diffstat:
Mcrates/notedeck_columns/src/ui/wallet.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/crates/notedeck_columns/src/ui/wallet.rs b/crates/notedeck_columns/src/ui/wallet.rs @@ -402,7 +402,9 @@ fn show_default_zap( notedeck_ui::include_input(ui, &r); } - ui.memory_mut(|m| m.request_focus(id)); + if !notedeck::ui::is_narrow(ui.ctx()) { // TODO: this should really be checking if we are using a virtual keyboard instead of narrow + ui.memory_mut(|m| m.request_focus(id)); + } ui.label(tr!(i18n, "sats", "Unit label for satoshis (Bitcoin unit) for configuring default zap amount in wallet settings."));