mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 07:33:22 +00:00
use Enter key (#374)
This commit is contained in:
parent
65f98f4236
commit
5d330f1131
@ -325,7 +325,17 @@ class AskForLocalPin extends Component<{
|
||||
`flex flex-col items-center justify-center p-4 overflow-y-auto`}
|
||||
>
|
||||
<div class="block text-white">Please enter your local pin</div>
|
||||
<input ref={this.input} type="password"></input>
|
||||
<input
|
||||
ref={this.input}
|
||||
type="password"
|
||||
onKeyDown={(e) => {
|
||||
const input = this.input.current;
|
||||
if (e.key == "Enter" && input) {
|
||||
this.props.resolve(input.value);
|
||||
}
|
||||
}}
|
||||
>
|
||||
</input>
|
||||
<button
|
||||
class="text-white border mt-1 px-2 hover:bg-zinc-200"
|
||||
onClick={() => {
|
||||
|
Loading…
Reference in New Issue
Block a user