Now I have made a password keyboard. Although the system keyboard can be blocked from popping up, the focus disappears, so the password cannot be deleted from the cursor position.
Everyone, is there a more perfect solution? ? ?
This method is used to shield the keyboard
document.activeElement.blur()
As per the title, I understand that what you want to do is to customize an input interface.
If you want to customize an input interface, it doesn’t matter whether it is selected or not. Even if it is a p, just give it a click event and you can expand your custom input interface (I have done one like this)
If you don’t want to customize the interface, but also want to get the focus of the input box, I don’t understand your approach