Focus on Input

Hi, is there a way to keep the focus in input text, without open the keyboard?, I want to use a bar code reading but I need to set a focus only in the element,

you can use jquery to do focus on input.

 setTimeout(function () {
 }, 500);

here searchbar-input is my element

But, is this option will open the keyboard ?, because I don’t want to open it, in case that this open the keyboard, how can I close it ?

Hi I checked this option and the focus works, but I need that the keyboard doesn’t show until I wanted

You could theoretically use the keyboardWillShow event to stop the keyboard from opening, though I’m not sure exactly what that would look like in terms of usable code.

Should import something in the app.module.ts ?