Put the cursor in a certain component by default

Hello,

I was wondering if it would be possible to place the cursor by default into a component such as a st.text_input so that when the app starts one could just start typing instead of selecting which component to change.

I am writing an application which should accept inputs from a qr code scanner which should translate to a set of key strokes. I’d like those keystrokes to be entered into a specific st.text_input since I wouldn’t be able to mouse or tab over to the correct component with the qrcode scanner.

I believe that Scrolling to an element · Issue #636 · streamlit/streamlit · GitHub would solve my issue.