From 5d330f11317254c670a46a32227b856674ac474c Mon Sep 17 00:00:00 2001 From: BlowaterNostr <127284497+BlowaterNostr@users.noreply.github.com> Date: Sun, 21 Jan 2024 13:25:56 +0800 Subject: [PATCH] use Enter key (#374) --- app/UI/signIn.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/UI/signIn.tsx b/app/UI/signIn.tsx index 8983feb..6ecd7bc 100644 --- a/app/UI/signIn.tsx +++ b/app/UI/signIn.tsx @@ -325,7 +325,17 @@ class AskForLocalPin extends Component<{ `flex flex-col items-center justify-center p-4 overflow-y-auto`} >
Please enter your local pin
- + { + const input = this.input.current; + if (e.key == "Enter" && input) { + this.props.resolve(input.value); + } + }} + > +