Get text input when user pressed "RETURN" key

Hi @cuteufo, welcome to the Streamlit community :slight_smile:

At this time it is not possible to capture specific keypress events other than ENTER on the text_input.

I do think itโ€™s a good usecase for the upcoming Custom Components, which should be out soon, and will enable you to write your own JS/HTML rendered in Streamlit apps. When that comes out you should be able to overwrite this behavior and catch your own keypress events !

Fanilo

1 Like