When using st.form_submit_button() within a st.form(), there is no option to “click” the button via keyboard input. This would be useful when submitting queries using the st.text_input() method because the user would not have to rely on switching from keyboard to mouse in order to submit the form.
Steps to reproduce
with st.form(key="my_form"): phrase = st.text_input("Write your phrase here.") submit_button = st.form_submit_button("Submit")
- Streamlit version: 1.15.1
- Python version: 3.9
- OS version: Windows 10