I want to capture the ‘ENTER’ keypress event in text_input. I could not find any example or documentation for this. Below is something I was trying to achieve using Streamlit:
How to specify event on ‘ENTER’ key?
text = st.text_input(“User pressed enter”)
How to detect ‘ENTER’ key press?
print(“Execute this code on ENTER keypress event”
Currently, I have added a separate button which the user has to click every time for the input, but I want this to happen when the user presses the ‘ENTER’ key.
Appreciate any help in advance.